/* Общ стил. Марка FlowexAI.
   Roboto е хостнат при нас, не от чужд доставчик: външна заявка към Google
   изнася адреса на всеки посетител, а страницата се продава точно с
   обратното. Кирилицата е задължителна, затова има и cyrillic подмножество. */

@font-face{font-family:'Roboto';font-style:normal;font-weight:400 700;font-display:swap;src:url('/static/fonts/roboto-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400 700;font-display:swap;src:url('/static/fonts/roboto-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  --navy: #003366;
  --navy-dark: #002347;
  --navy-soft: #14508a;
  --accent: #4caf50;
  --accent-dark: #3d9140;
  --danger: #c0392b;
  --danger-soft: #fdf0ef;
  --warn: #b7791f;
  --warn-soft: #fdf8ec;
  --ok-soft: #eefaf4;
  --ink: #003366;
  --muted: #5a6b7d;
  --line: #dfe5ea;
  --bg: #ffffff;
  --bg-soft: #f2f2f2;   /* tertiary: фон на .fx-card и на редуващите се секции */
  --radius: 1rem;
  --shadow: 0 1px 3px rgba(0, 51, 102, .06), 0 8px 24px rgba(0, 51, 102, .08);
  --wrap: 1080px;
}

* { box-sizing: border-box; }

/* Клавиатурният фокус трябва да се вижда. Подразбиращата се рамка на браузъра
   изчезва върху цветни фонове, затова е изрична. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.25; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: 2.4rem; letter-spacing: -.02em; }
h2 { font-size: 1.75rem; margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-soft); }

.lead { font-size: 1.15rem; color: var(--muted); }

/* --- Заглавна лента: както на flowexai.bg, бяла с лого-изображение --- */
header.top {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 51, 102, .04);
}
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 74px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 150px; height: auto; display: block; }
nav.top-nav { display: flex; gap: 26px; align-items: center; }
nav.top-nav a {
  color: var(--navy); text-decoration: none; font-size: .95rem; font-weight: 500;
}
nav.top-nav a:hover { color: #2f7132; text-decoration: underline; }
nav.top-nav a.cta {
  background: var(--accent); color: #fff; padding: 0.9rem 1.5rem;
  border-radius: 12px; font-weight: 700;
  box-shadow: rgba(76, 175, 80, .13) 0 2px 14px 0;
}
nav.top-nav a.cta:hover { background: var(--navy); }
@media (max-width: 720px) {
  nav.top-nav a:not(.cta) { display: none; }
  h1 { font-size: 1.8rem; }
}

/* --- Секции --- */
section { padding: 64px 0; }
section.tint { background: var(--bg-soft); }
section.tint .card { background: #fff; }
section.hero { padding: 72px 0 56px; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #2f7132;
  background: var(--ok-soft); padding: 5px 11px; border-radius: 20px;
  margin-bottom: 16px;
}

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 0.9rem 1.5rem; border-radius: 12px; text-decoration: none;
  font-weight: 700; border: 0; cursor: pointer; font-size: 1rem;
  font-family: inherit;
  box-shadow: rgba(76, 175, 80, .13) 0 2px 14px 0;
}
.btn:hover { background: var(--navy); }
.btn.ghost {
  background: transparent; color: var(--navy); border: 1.5px solid var(--line);
}
.btn.ghost:hover { border-color: var(--navy); background: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* --- Мрежи и карти --- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--bg-soft); border: 0; border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 51, 102, .04);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy);
  color: #fff; display: grid; place-items: center; font-weight: 700;
  font-size: .9rem; margin-bottom: 12px;
}

/* --- Таблици --- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem;
        font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 600; color: var(--navy); white-space: nowrap; }
tbody tr:hover { background: #fafcfd; }

/* --- Цени --- */
.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: #fff; display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .tag {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent-dark); margin-bottom: 6px;
  min-height: 1em;
}
.plan .name { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 8px 0 2px; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan .who { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: .93rem; }
.plan ul li { padding: 5px 0 5px 22px; position: relative; }
.plan ul li::before {
  content: "+"; position: absolute; left: 4px; color: var(--accent);
  font-weight: 800;
}
.plan .btn { margin-top: auto; text-align: center; }

/* --- Форма --- */
form.stack { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 8px; font-family: inherit; font-size: 1rem; background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--muted); }

/* --- Съобщения --- */
.notice { padding: 14px 16px; border-radius: 8px; font-size: .93rem; }
.notice.ok { background: var(--ok-soft); border: 1px solid #b7e4d0; }
.notice.err { background: var(--danger-soft); border: 1px solid #f2c4bf; color: #7f271c; }
.notice.info { background: #eef4fa; border: 1px solid #c9dcec; }
.notice.warn { background: var(--warn-soft); border: 1px solid #ecd9ae; }

/* --- Подножие: пренесено по стойностите на flowexai.bg --- */
.fxai-footer {
  background: #fff; padding: 48px 24px 24px; color: #003366;
  border-top: 1px solid #e0e0e0;
}
.fxai-footer a { color: inherit; text-decoration: none; }
.fxai-footer a:hover { color: #4caf50; transition: color .2s ease; }
.fxai-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.fxai-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px;
}
.fxai-logo img { height: 36px; width: auto; margin-bottom: 14px; display: block; }
.fxai-tagline { font-size: 16px; color: #666; line-height: 1.6; margin: 0; }
.fxai-footer h4 {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: #003366; margin: 0 0 14px;
}
.fxai-contact-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  padding: 0; margin: 0;
}
.fxai-contact-list li { font-size: 16px; color: #666; }
.fxai-contact-list a { color: #666; }
.fxai-cta-text { font-size: 16px; color: #666; line-height: 1.5; margin: 0 0 16px; }
.fxai-cta-btn {
  display: inline-block; background: #4caf50; color: #fff !important;
  padding: 0.9rem 1.5rem; border-radius: 12px; font-weight: 700;
  box-shadow: rgba(76, 175, 80, .13) 0 2px 14px 0;
}
.fxai-cta-btn:hover { background: #003366 !important; color: #fff !important; }
.fxai-nav {
  border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0;
  padding: 18px 0; text-align: center; margin-bottom: 18px;
}
.fxai-nav-main { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.fxai-nav-main a { color: #003366; margin: 0 10px; }
.fxai-nav-legal { font-size: 14px; }
.fxai-nav-legal a { color: #767676; margin: 0 6px; }
.fxai-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.fxai-copy { font-size: 12px; color: #767676; margin: 0; }
.fxai-bottom p:last-child { text-align: right; max-width: 52ch; }
@media (max-width: 768px) {
  .fxai-footer { padding: 32px 20px 20px; }
  .fxai-top { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .fxai-logo { display: flex; justify-content: center; }
  .fxai-contact-list { align-items: center; }
  .fxai-cta-section { display: flex; flex-direction: column; align-items: center; }
  .fxai-bottom { flex-direction: column; align-items: center; text-align: center; }
  .fxai-bottom p:last-child { text-align: center; }
}

/* --- Дребни --- */
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 10px; }
code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .87em;
}
details.faq {
  border-bottom: 1px solid var(--line); padding: 14px 0;
}
details.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
