@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --page-ink: #11132d;
  --page-muted: #646b80;
  --page-line: #e3e6ed;
  --page-paper: #f5f7fc;
  --page-accent: #315efb;
  --page-accent-soft: #e8edff;
  --page-dark: #151936;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.product-body {
  margin: 0;
  color: var(--page-ink);
  background: #fff;
  font: 16px/1.6 Inter, Arial, sans-serif;
}
body[data-theme="crm"] { --page-accent: #187b68; --page-accent-soft: #e4f3ee; }
body[data-theme="beauty"] { --page-accent: #9f304c; --page-accent-soft: #f9e9ed; }
body[data-theme="cosmetology"] { --page-accent: #167c83; --page-accent-soft: #e3f2f2; }
body[data-theme="veterinary"] { --page-accent: #38693c; --page-accent-soft: #eaf3e8; }
body[data-theme="delivery"] { --page-accent: #b13c2e; --page-accent-soft: #fff0e9; }
body[data-theme="messenger"] { --page-accent: #315efb; --page-accent-soft: #e8edff; }

.product-body a { color: inherit; }
.product-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.product-skip { position: fixed; z-index: 100; top: -80px; left: 16px; padding: 10px 14px; background: #fff; border: 1px solid var(--page-line); }
.product-skip:focus { top: 12px; }
.product-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #e8eaf0; background: #ffffffed; backdrop-filter: blur(14px); }
.product-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.product-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.product-brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.product-brand span { display: grid; line-height: 1.25; }
.product-brand strong { font: 800 14px Manrope, sans-serif; }
.product-brand small { margin-top: 3px; color: var(--page-muted); font-size: 10px; }
.product-nav { display: flex; align-items: center; gap: 20px; }
.product-nav a { color: #4e5368; text-decoration: none; font-size: 12px; font-weight: 650; }
.product-nav a:hover { color: var(--page-accent); }
.product-nav .product-nav-cta { padding: 10px 14px; border-radius: 7px; background: var(--page-dark); color: #fff; }
.product-nav .product-nav-cta:hover { color: #fff; background: var(--page-accent); }

.product-hero { overflow: hidden; border-bottom: 1px solid var(--page-line); background: var(--page-paper); }
.product-hero-grid { min-height: 510px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 46px; align-items: center; padding-block: 56px; }
.product-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--page-accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.product-hero h1 { max-width: 650px; margin: 0; font: 800 48px/1.09 Manrope, sans-serif; letter-spacing: 0; }
.product-hero-copy { max-width: 570px; margin: 20px 0 0; color: var(--page-muted); font-size: 16px; line-height: 1.7; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 27px; }
.product-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 17px; border: 1px solid var(--page-accent); border-radius: 7px; background: var(--page-accent); color: #fff !important; text-decoration: none; font-size: 12px; font-weight: 750; transition: transform .18s, background .18s; }
.product-button:hover { transform: translateY(-2px); background: var(--page-dark); }
.product-button.secondary { border-color: #cfd3de; background: #fff; color: var(--page-ink) !important; }
.product-button.secondary:hover { border-color: var(--page-accent); background: var(--page-accent-soft); }
.product-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 27px; color: #62697b; font-size: 11px; }
.product-trust span::before { display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--page-accent); content: ""; }

.product-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.preview-note { position: absolute; right: 3px; bottom: 1px; max-width: 230px; color: #747b8c; font-size: 9px; line-height: 1.45; text-align: right; }
.concept-window { width: min(100%, 440px); min-height: 280px; overflow: hidden; border: 1px solid #dfe3eb; border-radius: 12px; background: #fff; box-shadow: 0 18px 48px #14182b12; }
.concept-topbar { min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid #edf0f4; font-size: 10px; font-weight: 750; }
.concept-topbar small { color: var(--page-muted); font-size: 9px; font-weight: 500; }
.concept-content { padding: 15px; }
.concept-label { margin: 0 0 11px; color: var(--page-muted); font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.concept-row { min-height: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf0f4; font-size: 10px; }
.concept-row:last-child { border-bottom: 0; }
.concept-row strong { display: block; font-size: 10px; }
.concept-row small { display: block; margin-top: 3px; color: var(--page-muted); font-size: 9px; }
.concept-tag { padding: 5px 8px; border-radius: 4px; background: var(--page-accent-soft); color: var(--page-accent); font-size: 8px; font-weight: 750; white-space: nowrap; }
.concept-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.concept-tile { min-height: 72px; padding: 12px; border: 1px solid #edf0f4; border-radius: 6px; }
.concept-tile strong { display: block; font: 750 16px Manrope, sans-serif; }
.concept-tile small { display: block; margin-top: 5px; color: var(--page-muted); font-size: 9px; }
.concept-phone { width: 220px; height: 390px; overflow: hidden; border: 7px solid #151936; border-radius: 29px; background: white; box-shadow: 0 22px 40px #12182d24; }
.concept-phone img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.concept-phone-head { padding: 19px 14px 10px; font: 800 13px Manrope, sans-serif; }
.concept-phone-row { margin: 7px 10px; padding: 10px; border-radius: 6px; background: #f4f5f8; font-size: 9px; }
.concept-phone-row b { display: block; margin-bottom: 4px; font-size: 10px; }
.concept-phone-action { margin: 12px 10px; padding: 10px; border-radius: 5px; background: var(--page-accent); color: #fff; font-size: 9px; font-weight: 750; text-align: center; }
.visual-accent { position: absolute; z-index: 0; width: 290px; height: 290px; border: 1px solid color-mix(in srgb, var(--page-accent) 24%, transparent); border-radius: 50%; }
.concept-window, .concept-phone { position: relative; z-index: 1; }

.product-section { padding-block: 76px; }
.product-section.soft { background: #f7f8fb; }
.product-section-head { max-width: 720px; margin-bottom: 30px; }
.product-section-head .product-eyebrow { margin-bottom: 12px; }
.product-section h2 { max-width: 740px; margin: 0; font: 800 34px/1.16 Manrope, sans-serif; letter-spacing: 0; }
.product-section-intro { max-width: 680px; margin: 14px 0 0; color: var(--page-muted); font-size: 14px; line-height: 1.7; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-top: 31px; border-top: 1px solid var(--page-line); }
.product-feature { padding: 21px 0 19px; border-bottom: 1px solid var(--page-line); }
.product-feature small { color: var(--page-accent); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.product-feature h3 { margin: 8px 0 7px; font: 750 15px/1.35 Manrope, sans-serif; }
.product-feature p { margin: 0; color: var(--page-muted); font-size: 12px; line-height: 1.65; }
.workflow-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 31px 0 0; padding: 0; list-style: none; counter-reset: stage; }
.workflow-list li { min-height: 138px; padding: 17px; border: 1px solid var(--page-line); border-radius: 7px; background: #fff; counter-increment: stage; }
.workflow-list li::before { display: block; margin-bottom: 18px; color: var(--page-accent); content: counter(stage, decimal-leading-zero); font-size: 10px; font-weight: 800; }
.workflow-list strong { display: block; font: 750 13px Manrope, sans-serif; }
.workflow-list span { display: block; margin-top: 6px; color: var(--page-muted); font-size: 11px; line-height: 1.5; }
.concept-disclaimer { margin: 14px 0 0; color: #73798a; font-size: 10px; }
.related-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--page-line); list-style: none; }
.related-pages a { display: flex; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--page-line); color: var(--page-ink); text-decoration: none; font-size: 12px; font-weight: 700; }
.related-pages a::after { color: var(--page-accent); content: "↗"; }
.related-pages a:hover { color: var(--page-accent); }
.product-faq { max-width: 850px; margin-top: 29px; border-top: 1px solid var(--page-line); }
.product-faq details { border-bottom: 1px solid var(--page-line); }
.product-faq summary { padding: 18px 30px 18px 0; cursor: pointer; font: 700 13px Manrope, sans-serif; list-style: none; position: relative; }
.product-faq summary::-webkit-details-marker { display: none; }
.product-faq summary::after { position: absolute; right: 4px; color: var(--page-accent); content: "+"; font-size: 20px; font-weight: 400; }
.product-faq details[open] summary::after { content: "−"; }
.product-faq details p { max-width: 720px; margin: -3px 0 18px; color: var(--page-muted); font-size: 12px; line-height: 1.7; }
.product-cta { padding-block: 49px; background: var(--page-dark); color: #fff; }
.product-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.product-cta h2 { max-width: 610px; margin: 0; font: 750 27px/1.2 Manrope, sans-serif; }
.product-cta p { margin: 9px 0 0; color: #c3c7d4; font-size: 12px; }
.product-cta .product-button { flex: 0 0 auto; border-color: #fff; background: #fff; color: var(--page-dark) !important; }
.product-cta .product-button:hover { border-color: var(--page-accent); background: var(--page-accent); color: #fff !important; }
.product-footer { padding-block: 25px; border-top: 1px solid #e8eaf0; }
.product-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.product-footer small { color: var(--page-muted); font-size: 10px; }
.product-footer-links { display: flex; flex-wrap: wrap; gap: 13px; }
.product-footer-links a { color: #5e6578; text-decoration: none; font-size: 10px; }
.product-footer-links a:hover { color: var(--page-accent); }
.product-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; color: var(--page-muted); font-size: 10px; }
.product-breadcrumbs a { color: var(--page-muted); text-decoration: none; }
.product-breadcrumbs a:hover { color: var(--page-accent); }

.landing-links { padding: 78px 0; background: #f7f8fb; }
.case-links { padding: 8px 0 54px; }
.case-links .landing-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.landing-links h2 { margin: 0; font: 800 32px/1.2 Manrope, sans-serif; }
.landing-links > .product-wrap > p:not(.product-eyebrow) { max-width: 650px; margin: 12px 0 0; color: var(--page-muted); font-size: 13px; }
.landing-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; margin-top: 27px; border-top: 1px solid var(--page-line); }
.landing-link { display: flex; min-height: 69px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--page-line); text-decoration: none; font-size: 12px; font-weight: 700; }
.landing-link::after { color: var(--page-accent); content: "↗"; }
.landing-link:hover { color: var(--page-accent); }

.case-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.case-gallery figure { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--page-line); border-radius: 8px; background: #f8f9fc; }
.case-gallery img { width: 100%; height: 330px; display: block; object-fit: contain; object-position: center top; border-radius: 4px; background: #fff; }
.case-gallery figcaption { margin: 9px 0 0; color: #51586b; font-size: 10px; font-weight: 650; }
.case-gallery-note { margin: 12px 0 0; color: var(--page-muted); font-size: 10px; }

@media (max-width: 900px) {
  .product-hero-grid { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr); gap: 24px; }
  .product-hero h1 { font-size: 40px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-gallery img { height: 300px; }
}
@media (max-width: 640px) {
  .product-wrap { width: min(100% - 32px, 520px); }
  .product-header-inner { min-height: 64px; gap: 12px; }
  .product-brand img { width: 34px; height: 34px; }
  .product-brand strong { font-size: 12px; }
  .product-brand small { font-size: 9px; }
  .product-nav { gap: 11px; }
  .product-nav a { font-size: 10px; }
  .product-nav a:first-child { display: none; }
  .product-nav .product-nav-cta { padding: 9px 10px; }
  .product-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 19px; padding-block: 43px 30px; }
  .product-hero h1 { font-size: 35px; }
  .product-hero-copy { margin-top: 15px; font-size: 14px; }
  .product-trust { margin-top: 20px; }
  .product-visual { min-height: 275px; }
  .concept-window { max-width: 410px; }
  .concept-phone { width: 178px; height: 318px; }
  .visual-accent { width: 225px; height: 225px; }
  .preview-note { right: 0; bottom: -2px; font-size: 8px; }
  .product-section { padding-block: 55px; }
  .product-section h2, .landing-links h2 { font-size: 28px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .workflow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .workflow-list li { min-height: 130px; padding: 13px; }
  .related-pages, .landing-link-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .case-links .landing-link-grid { grid-template-columns: minmax(0, 1fr); }
  .product-cta-inner { align-items: flex-start; flex-direction: column; }
  .product-cta h2 { font-size: 24px; }
  .product-footer-inner { align-items: flex-start; flex-direction: column; }
  .case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .case-gallery figure { padding: 6px; }
  .case-gallery img { height: 260px; }
}
@media (max-width: 380px) {
  .product-nav { gap: 8px; }
  .product-nav a { font-size: 9px; }
  .product-nav .product-nav-cta { padding-inline: 8px; }
  .product-hero h1 { font-size: 31px; }
  .case-gallery img { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
