/* Pettotec site — main page styles (variant B «Визитка», 2026-12-01).
   Colors follow the app themes (lib/themes/app_themes.dart); theme follows the system. */
:root {
  --bg: #FFF3F0; --bg-2: #FCE3DD;
  --text: #2D1A20; --text-2: #6B4A50; --accent-text: #8E4444;
  --accent-grad: linear-gradient(135deg, #DE9E9E, #D48C8C);
  --card: #FFF0ED; --card-border: #F2D8CC; --shadow: 0 10px 40px rgba(142, 68, 68, .16);
  --btn-bg: #2D1A20; --btn-text: #FFF0ED; --phone: #2D1A20; --blob: #F6C9C0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1525; --bg-2: #241B2C;
    --text: #FFF0ED; --text-2: #A59B9B; --accent-text: #D18888;
    --accent-grad: linear-gradient(135deg, #D18888, #C77D7D);
    --card: #2D1F2A; --card-border: #3E2D3A; --shadow: 0 10px 40px rgba(0, 0, 0, .4);
    --btn-bg: #FFF0ED; --btn-text: #2D1A20; --phone: #0E0B14; --blob: #4A2A3A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; color: var(--text); min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 85% 20%, var(--bg-2), var(--bg) 70%) fixed, var(--bg);
}
a { color: var(--accent-text); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Top bar and language */
.top { display: flex; justify-content: flex-end; padding-top: 16px; }
.lang-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px;
  font-size: 15px; font-weight: 600; text-decoration: none; }
.lang-link svg { width: 18px; height: 18px; }
.lang-hint { margin: 8px 0 0; padding: 4px 4px 4px 14px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--card-border); font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lang-hint[hidden] { display: none; }
.lang-hint button { background: none; border: 0; color: var(--text-2); font-size: 20px; cursor: pointer; min-width: 44px; min-height: 44px; }

/* Main grid */
main { flex: 1; display: flex; align-items: center; }
.grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 24px; padding-bottom: 40px; }

.title { display: flex; align-items: center; gap: 16px; }
.title img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
.kicker { font-size: 14px; color: var(--text-2); margin: 2px 0 0; }
.lead { font-size: clamp(19px, 2.3vw, 22px); line-height: 1.45; margin: 24px 0 0; max-width: 34ch; }

/* Store buttons; .store[hidden] stays hidden until the store goes live */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 16px; min-height: 56px;
  border-radius: 12px; background: var(--btn-bg); color: var(--btn-text); text-decoration: none; }
.store[hidden] { display: none; }
.store-badge { display: inline-flex; border-radius: 10px; }
.store-badge img { display: block; width: auto; height: 56px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .85; line-height: 1.2; }
.store b { display: block; font-size: 18px; line-height: 1.2; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px;
  background: var(--card); border: 1px solid var(--card-border); }
.chips svg { width: 16px; height: 16px; stroke: var(--accent-text); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.features { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.features li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.features .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-grad); display: grid; place-items: center; }
.features .ico svg { width: 22px; height: 22px; stroke: #2D1A20; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.features h2 { font-size: 16px; margin: 0; line-height: 1.4; }
.features p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.45; }

/* Phone with screen switcher */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.stage::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; background: var(--blob);
  top: 50%; left: 50%; transform: translate(-50%, -56%); filter: blur(8px); opacity: .7; z-index: 0; }
.phone { position: relative; z-index: 1; width: min(100%, 300px); aspect-ratio: 9 / 16; border: 9px solid var(--phone);
  border-radius: 38px; overflow: hidden; background: var(--phone); box-shadow: var(--shadow); margin: 0; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 29px; opacity: 0; }
.phone img.on { opacity: 1; }
.tabs { position: relative; z-index: 1; display: none; gap: 6px; margin-top: 18px; padding: 4px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-border); }
.js .tabs { display: flex; }
.tabs button { border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; padding: 0 14px;
  min-height: 44px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent-grad); color: #2D1A20; font-weight: 600; }

/* Footer */
footer { padding-top: 20px; padding-bottom: 32px; color: var(--text-2); font-size: 14px; border-top: 1px solid var(--card-border); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { display: inline-block; padding: 10px 0; }

/* Document pages (_layouts/document.html): privacy policy, terms of use */
.doc-top { justify-content: space-between; align-items: center; }
.doc-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700;
  font-size: 17px; color: var(--text); text-decoration: none; }
.doc-brand img { width: 32px; height: 32px; border-radius: 8px; }
.doc-page main { display: block; padding-top: 16px; padding-bottom: 48px; }
.doc { max-width: 72ch; margin: 0 auto; padding: 32px clamp(20px, 5vw, 48px); background: var(--card);
  border: 1px solid var(--card-border); border-radius: 24px; box-shadow: var(--shadow); }
.doc h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.15; margin: 0 0 16px; }
.doc h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc hr { border: 0; border-top: 1px solid var(--card-border); margin: 24px 0; }
.doc strong { font-weight: 650; }
.doc a { overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; gap: 40px; padding-top: 8px; }
  .lead { max-width: none; }
  .phone { width: min(70vw, 280px); }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; justify-content: center; }
  .stores { justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .phone img { transition: opacity .35s ease; }
  .store { transition: filter .15s; }
  .store:hover { filter: brightness(1.15); }
}
