/* Ландшафт внедрения ИИ · Онтико — статический лендинг */

:root {
  --background: 222 47% 6%;
  --foreground: 210 20% 90%;
  --primary: 0 72% 51%;
  --primary-foreground: 0 0% 100%;
  --secondary: 222 30% 16%;
  --muted: 222 30% 14%;
  --muted-foreground: 215 15% 55%;
  --accent: 270 60% 65%;
  --border: 222 20% 18%;
  --container: 64rem;
}

* { box-sizing: border-box; border-color: hsl(var(--border)); margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.muted { color: hsl(var(--muted-foreground)); }
.primary { color: hsl(var(--primary)); }
.border-b { border-bottom: 1px solid hsl(var(--border)); }
.border-t { border-top: 1px solid hsl(var(--border)); }

/* Top banner */
.banner {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
}

/* Header */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-header .logo { font-weight: 700; letter-spacing: -0.01em; transition: color .15s; }
.site-header .logo:hover { color: hsl(var(--primary)); }
.site-header .tag { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* Hero */
.hero .container { padding-top: 4rem; padding-bottom: 4rem; }
.eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.eyebrow .dot { width: 0.5rem; height: 0.5rem; background: hsl(var(--primary)); }
.eyebrow span { font-size: 0.875rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.15em; }
.hero h1 { font-size: 2.25rem; line-height: 1.1; font-weight: 700; }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }

/* Tabs */
.tabs .container {
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 768px) { .tabs .container { grid-template-columns: repeat(3, 1fr); } }
.tab {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  text-align: center; padding: 1.25rem 1.5rem;
  font-size: 1.125rem; font-weight: 700;
  background: transparent; color: hsl(var(--muted-foreground));
  border: 2px solid hsl(var(--border)); cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.tab:hover { border-color: hsl(var(--primary) / 0.5); color: hsl(var(--foreground)); }
.tab.active { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.tab svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

/* Description */
.desc .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.desc .lead { font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 48rem; line-height: 1.7; margin-bottom: 1rem; }
.desc .sub { font-size: 1rem; color: hsl(var(--muted-foreground)); max-width: 48rem; line-height: 1.7; }
.callout { margin-top: 1.5rem; border-left: 2px solid hsl(var(--primary) / 0.3); padding-left: 1rem; }
.callout p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; display: flex; align-items: flex-start; gap: 0.5rem; }
.callout svg { width: 1rem; height: 1rem; margin-top: 0.15rem; flex-shrink: 0; color: hsl(var(--primary)); }

/* Intro + summary table */
.intro-section .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.intro-section h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
thead tr { border-bottom: 1px solid hsl(var(--border)); text-align: left; }
th { padding: 0.75rem 1rem 0.75rem 0; color: hsl(var(--muted-foreground)); font-weight: 500; }
tbody tr { border-bottom: 1px solid hsl(var(--border) / 0.5); }
td { padding: 0.75rem 1rem 0.75rem 0; vertical-align: top; }
td.num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: hsl(var(--primary)); }
.row-link {
  background: none; border: none; padding: 0; cursor: pointer; font: inherit;
  color: hsl(var(--foreground)); font-weight: 500; text-align: left;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: hsl(var(--primary) / 0.3); transition: color .15s;
}
.row-link:hover { color: hsl(var(--primary)); text-decoration-color: hsl(var(--primary)); }
td.focus { color: hsl(var(--muted-foreground)); }

/* Stats */
.stats .container { padding-top: 2rem; padding-bottom: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat { display: flex; align-items: center; gap: 0.75rem; }
.stat svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); flex-shrink: 0; }
.stat .value { font-size: 1.5rem; font-weight: 700; }
.stat .label { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* Sections toolbar */
.toolbar { display: flex; justify-content: flex-end; padding: 1rem 1.5rem; }
.toolbar button {
  display: flex; align-items: center; gap: 0.5rem;
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 0.875rem; color: hsl(var(--muted-foreground)); transition: color .15s;
}
.toolbar button:hover { color: hsl(var(--primary)); }
.toolbar svg { width: 1rem; height: 1rem; }

/* Accordion */
.acc { border-bottom: 1px solid hsl(var(--border)); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; text-align: left;
  background: none; border: none; cursor: pointer; font: inherit; transition: background .15s;
}
.acc-head:hover { background: hsl(var(--secondary) / 0.5); }
.acc-head .idx { color: hsl(var(--muted-foreground)); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875rem; width: 2rem; flex-shrink: 0; }
.acc-head .chev { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); flex-shrink: 0; transition: transform .2s; }
.acc.open .acc-head .chev { transform: rotate(90deg); }
.acc-head .title { font-size: 1.125rem; font-weight: 500; color: hsl(0 0% 100%); transition: color .15s; }
.acc-head:hover .title { color: hsl(var(--primary)); }
.acc-body { display: none; padding: 0 1.5rem 1.5rem 5rem; }
.acc.open .acc-body { display: block; }
.acc-body > .sec-desc { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; line-height: 1.7; }
.topic { border-left: 2px solid hsl(var(--primary) / 0.3); padding-left: 1rem; margin-bottom: 1rem; }
.topic h4 { font-weight: 500; margin-bottom: 0.25rem; color: hsl(0 0% 100%); }
.topic p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }
.subsection { margin-top: 1.5rem; }
.subsection > h4 { font-size: 1rem; font-weight: 500; color: hsl(var(--accent)); margin-bottom: 0.5rem; }
.subsection > .sub-desc { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }

@media (max-width: 640px) { .acc-body { padding-left: 1.5rem; } }

/* Footer */
.site-footer .container { padding-top: 2rem; padding-bottom: 2rem; text-align: center; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.site-footer a:hover { color: hsl(var(--primary)); }

/* Cookie consent */
.cookie-consent { position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; }
@media (min-width: 768px) { .cookie-consent { left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 24rem; } }
.cookie-consent[hidden] { display: none; }
.cookie-consent .cc-card { background: hsl(222 40% 10%); border: 1px solid hsl(var(--border)); padding: 1.25rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.6); }
.cookie-consent h3 { font-size: 1rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: .5rem; }
.cookie-consent p { font-size: .875rem; line-height: 1.6; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.cookie-consent a { color: hsl(var(--muted-foreground)); text-decoration: underline; text-underline-offset: 4px; }
.cookie-consent a:hover { color: hsl(var(--foreground)); }
.cookie-consent button { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: none; cursor: pointer; font: inherit; font-size: .875rem; font-weight: 600; padding: .5rem 1.25rem; transition: filter .15s; }
.cookie-consent button:hover { filter: brightness(1.1); }
