/* ==========================================================================
   VLASPRO — static site styles
   Plain CSS, no build step, no external requests.
   ========================================================================== */

@import url('fonts.css');

/* --- tokens ------------------------------------------------------------- */
:root {
  --ink:        #1b2740;
  --ink-2:      #41506b;
  --ink-3:      #58657e;
  --bg:         #eef2f6;
  --bg-2:       #e3eaf1;
  --card:       #ffffff;
  --line:       #d9e1ea;
  --accent:     #0b7c8a;
  --accent-2:   #086673;
  --accent-bg:  #e6f4f6;
  --plum:       #4f474e;

  --sans:  'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --slab:  'Roboto Slab', Georgia, serif;
  --mark:  'Lato', 'Inter', Arial, sans-serif;

  --wrap:      1140px;
  --radius:    14px;
  --shadow:    0 1px 2px rgba(27, 39, 64, .06), 0 8px 24px rgba(27, 39, 64, .07);
  --shadow-lg: 0 2px 4px rgba(27, 39, 64, .07), 0 18px 50px rgba(27, 39, 64, .12);
}

/* --- base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 1.0625rem/1.75 var(--sans);
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  font-family: var(--slab);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 700; }

ul { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin-bottom: .5em; }
li::marker { color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* --- header ------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(27, 39, 64, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-head__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px;
}

.brand {
  display: inline-flex; align-items: baseline; gap: .45rem;
  font-family: var(--mark); font-weight: 900; letter-spacing: .12em;
  font-size: 1.18rem; color: #fff; text-decoration: none; white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand span { color: #7fd3dd; }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.35rem, 2vw, 1.1rem); }

.nav a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: .95rem; font-weight: 500;
  padding: .5rem .55rem; border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #7fd3dd; }

.nav .btn { margin-left: .35rem; color: #fff; }
.nav .btn:hover { color: #fff; }

/* narrow screens: the wordmark keeps its row, the links move below it */
@media (max-width: 640px) {
  .site-head__inner { flex-wrap: wrap; justify-content: center; min-height: 0; padding-block: .5rem; }
  .brand { margin-inline: auto; }
  /* чотири пункти меню не завжди вміщаються в один рядок — дозволяємо перенос */
  .nav { margin-left: 0; width: 100%; justify-content: center; gap: .15rem; flex-wrap: wrap; }
  .nav .btn { display: none; }
  .nav a { font-size: .92rem; padding: .45rem .5rem; }
}

@media (max-width: 400px) {
  .nav a { font-size: .88rem; padding: .4rem .35rem; }
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.3rem;
  font: 600 .97rem/1.2 var(--sans);
  color: #fff; background: var(--accent);
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 124, 138, .28); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #b9c7d6; box-shadow: var(--shadow); }

.btn--onlight { background: rgba(255, 255, 255, .9); color: var(--ink); }
.btn--onlight:hover { background: #fff; color: var(--ink); }

.btn--sm { padding: .5rem 1rem; font-size: .88rem; }

/* --- hero --------------------------------------------------------------- */
.kicker {
  display: block;
  font: 600 clamp(.82rem, 2.2vw, 1rem)/1.5 var(--sans);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 2.2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* page hero — однакова шапка на всіх сторінках, включно з головною */
.pagehead {
  background: linear-gradient(180deg, #1b2740 0%, #24324f 100%);
  color: rgba(255, 255, 255, .78);
  padding: clamp(2.6rem, 7vw, 4.6rem) 0 clamp(2.4rem, 6vw, 4rem);
  text-align: center;
}
/* Заголовок, підпис і напис VLAS PRO однакові на всіх сторінках:
   один шрифт, одна насиченість, один розмір. */
.pagehead h1 {
  color: #fff; font-weight: 300; line-height: 1.2;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  margin-bottom: .3em;
}
.pagehead h1 b { font-weight: 700; }
/* :not() — бо напис VLAS PRO вище теж є <p> і ширина його не стосується.
   80ch підібрано так, щоб довгий підпис на сторінці AI-агентів лягав
   у два рядки приблизно однакової довжини (778 і 783 px), а не 915 і 646. */
.pagehead p:not(.pagehead__mark) { max-width: 80ch; margin-inline: auto; }
.pagehead .kicker { color: #7fd3dd; margin-bottom: 1rem; }

.pagehead__mark {
  font-family: var(--mark); font-weight: 900;
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  letter-spacing: .14em; color: #fff;
  line-height: 1; margin: 0 0 .9rem;
}

/* головна: та сама шапка, але з банером під темною заливкою */
.pagehead--home { position: relative; isolation: isolate; overflow: hidden; }

.pagehead--home::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('../img/banner.jpg') center 42% / cover no-repeat;
  /* браузери з підтримкою image-set візьмуть webp (26 КБ замість 86 КБ) */
  background-image: image-set(url('../img/banner.webp') type('image/webp'),
                              url('../img/banner.jpg') type('image/jpeg'));
}
.pagehead--home::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(27, 39, 64, .90) 0%, rgba(27, 39, 64, .86) 55%, rgba(36, 50, 79, .95) 100%);
}

/* заголовок має лягати в один рядок на будь-якій ширині.
   Текст завширшки ~17.8em; 4.7vw лишає запас навіть на 320 px з урахуванням
   смуги прокрутки, яку vw не віднімає. Перенос свідомо не заборонений
   (без white-space: nowrap): якщо шрифт не завантажиться і підставиться
   ширший запасний, рядок просто розділиться надвоє замість того,
   щоб виїхати за екран. */
.pagehead--home h1 { font-size: min(3rem, 4.7vw); }

.pagehead--home .hero__actions { margin-top: 1.7rem; }

/* на малих екранах шапка стискається — однаково на всіх сторінках */
@media (max-width: 480px) {
  .pagehead { padding-block: 2.2rem 2rem; }
  .pagehead__mark { margin-bottom: .7rem; }
  .pagehead .kicker { margin-bottom: .8rem; }
  .pagehead--home .hero__actions { margin-top: 1.3rem; }
}

/* --- sections ----------------------------------------------------------- */
.section { padding: clamp(2.8rem, 8vw, 5.5rem) 0; }
.section--tight { padding-block: clamp(2rem, 6vw, 3.5rem); }
.section--alt { background: var(--bg-2); }

.section__head { max-width: 66ch; margin: 0 auto clamp(1.8rem, 5vw, 3rem); text-align: center; }
.section__head h2 { font-size: clamp(1.65rem, 4vw, 2.35rem); }
.section__head p { color: var(--ink-2); }

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 74ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

/* блок «про VLASPRO» на головній: теза ліворуч, розкриття праворуч */
.about { display: grid; gap: clamp(1.4rem, 4vw, 2.4rem); }
@media (min-width: 860px) {
  .about { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: start; }
  .about__body { padding-left: clamp(1.6rem, 3vw, 2.6rem); border-left: 1px solid var(--line); }
}

.about__rule { width: 64px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 1.2rem; }

.about__lead {
  font-family: var(--slab); font-weight: 400;
  font-size: clamp(1.18rem, 2.7vw, 1.6rem);
  line-height: 1.4; color: var(--ink);
  margin: 0;
}

.about__body { display: grid; gap: 1.1rem; align-content: start; }
.about__body p { margin: 0; color: var(--ink-2); }

/* --- teaser grid -------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
/* min() не дає колонці стати ширшою за екран на вузьких пристроях */
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(275px, 100%), 1fr)); }

.tile {
  display: flex; flex-direction: column; gap: .7rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  text-decoration: none; color: var(--ink-2);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c3d2e0; color: var(--ink-2); }

.tile__num {
  font: 700 .8rem/1 var(--sans); letter-spacing: .14em;
  color: var(--accent-2); background: var(--accent-bg);
  padding: .42rem .6rem; border-radius: 6px; align-self: flex-start;
}
.tile h3 { font-size: 1.09rem; margin: 0; line-height: 1.35; }
.tile p { font-size: .95rem; color: var(--ink-3); margin: 0; }
.tile__go { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--accent); }

/* --- cases -------------------------------------------------------------- */
.case { padding-block: clamp(2.2rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; }

.case__grid {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .case__grid { grid-template-columns: minmax(0, 47%) minmax(0, 1fr); }
  .case--flip .case__media { order: 2; }
}

.case__media {
  position: sticky; top: 90px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (max-width: 899px) { .case__media { position: static; } }

/* the slider brings its own frame */
.case__media--plain { position: static; border: 0; background: none; box-shadow: none; overflow: visible; }

.case__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: .9rem;
}
.case__badge::before { content: ''; width: 26px; height: 2px; background: var(--accent); }

.case h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
.case h3 {
  font-size: 1.1rem; margin: 1.6em 0 .5em;
  font-family: var(--sans); font-weight: 700; color: var(--ink);
  letter-spacing: .01em;
}

/* expandable detail */
details.more { margin-top: 1.2rem; border-top: 1px dashed var(--line); }
details.more > summary {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.1rem; padding: .5rem .95rem .5rem .8rem;
  font: 600 .93rem/1 var(--sans); color: var(--accent-2);
  background: var(--accent-bg); border-radius: 999px;
  cursor: pointer; list-style: none;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after {
  content: ''; width: .52em; height: .52em; margin-left: .1rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
details.more[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
details.more > summary:hover { background: #d5ebee; }
details.more[open] > summary { margin-bottom: .4rem; }
.more__body { padding-top: .6rem; }

/* --- розгорнутий кейс на всю ширину -------------------------------------- */
/* Блок винесений із колонки кейсу і стоїть під сіткою, тож текст займає
   всю ширину статті. Щоб рядки не розтягувалися на 1000+ px і не втрачали
   читабельність, довгі кейси (.more--cols) розкладаються у дві колонки. */
.case > details.more {
  margin-top: clamp(1.4rem, 3.5vw, 2.2rem);
  border-top: 1px dashed var(--line);
}

.case > details.more > summary { margin-top: 1.2rem; }

.case > details.more .more__body {
  margin-top: .9rem; padding: clamp(1.2rem, 3vw, 1.9rem) clamp(1.2rem, 3.5vw, 2.1rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.case > details.more .more__body > :first-child { margin-top: 0; }
.case > details.more .more__body > :last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .more--cols .more__body {
    column-count: 2;
    column-gap: clamp(2rem, 4.5vw, 3.4rem);
    column-rule: 1px solid var(--line);
  }
  /* Абзац не рвемо, а довгий список хай перетікає між колонками — інакше
     колонки виходять різної висоти (у кейсі 01 було 60 % заповнення проти
     100 % зараз). Окремий пункт списку при цьому лишається цілим. */
  .more--cols .more__body p { break-inside: avoid; }
  .more--cols .more__body li { break-inside: avoid; }
  .more--cols .more__body h3 { break-after: avoid; margin-top: 0; }
  .more--cols .more__body h3 + ul,
  .more--cols .more__body h3 + p { margin-top: .5em; }
}

/* --- блок демо-бота ------------------------------------------------------ */
/* Блок живе і на всю ширину сторінки, і всередині вузької колонки кейсу,
   тож двоколонкової розкладки за медіа-запитом тут свідомо немає:
   на 900 px колонка кейсу — близько 400 px, і текст поруч із QR стискався
   до нечитабельних 143 px. */
.trybot {
  margin-top: 1.6rem;
  background: linear-gradient(135deg, #1b2740 0%, #123c46 100%);
  color: rgba(255, 255, 255, .82);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3.5vw, 1.9rem);
}

.trybot__tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: #7fd3dd; margin-bottom: .7rem;
}
.trybot__tag::before { content: ''; width: 22px; height: 2px; background: #7fd3dd; }

.trybot h3 {
  font-family: var(--slab); color: #fff;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  margin: 0 0 .5rem;
}
.trybot p { font-size: .96rem; margin: 0 0 1rem; }
.trybot__btn { margin-bottom: .8rem; }

.trybot__note {
  font-size: .85rem; color: rgba(255, 255, 255, .58);
  margin: 0;
}

/* QR лежить окремим рядком під кнопкою — так він не тисне текст */
.trybot__qr {
  display: flex; align-items: center; gap: .9rem;
  margin-top: 1.2rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.trybot__qr img {
  flex: none; width: 104px; height: auto;
  border-radius: 8px; padding: 7px; background: #fff;
}
.trybot__qr p { font-size: .85rem; color: rgba(255, 255, 255, .58); margin: 0; }

/* на телефоні QR зайвий — Telegram відкриється прямо з кнопки */
@media (max-width: 619px) { .trybot__qr { display: none; } }

/* стисла смуга на головній: текст ліворуч, кнопка праворуч */
.trybot--slim {
  margin-top: 0;
  display: grid; gap: clamp(1.1rem, 3vw, 1.7rem); align-items: center;
}
@media (min-width: 760px) {
  .trybot--slim { grid-template-columns: minmax(0, 1fr) auto; }
}
.trybot--slim p:last-child { margin-bottom: 0; }
.trybot--slim .btn { white-space: nowrap; }

/* повний варіант під кейсом — на всю ширину сторінки, QR збоку.
   Тут місця вистачає, тож двоколонкова розкладка доречна. */
.trybot--wide { margin-top: clamp(1.8rem, 4vw, 2.6rem); }

@media (min-width: 760px) {
  .trybot--wide {
    display: grid; align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.6rem, 4vw, 3rem);
    padding: clamp(1.6rem, 3.5vw, 2.2rem);
  }
  .trybot--wide .trybot__qr {
    flex-direction: column; text-align: center; gap: .65rem;
    margin-top: 0; padding-top: 0; border-top: 0;
  }
  .trybot--wide .trybot__qr img { width: 128px; }
  .trybot--wide .trybot__main > :last-child { margin-bottom: 0; }
}

/* --- slider ------------------------------------------------------------- */
.slider { position: relative; }

.slider__viewport {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 0; border-radius: var(--radius);
  background: #0f1626; border: 1px solid var(--line); box-shadow: var(--shadow);
  scrollbar-width: none;
}
.slider__viewport::-webkit-scrollbar { display: none; }

.slider__slide { flex: 0 0 100%; scroll-snap-align: center; }
.slider__slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0f1626; }

.slider__bar {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  margin-top: .9rem;
}
.slider__btn {
  width: 42px; height: 42px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 50%; cursor: pointer; box-shadow: var(--shadow);
  transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.slider__btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.slider__btn:disabled { opacity: .35; cursor: default; }
.slider__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.slider__count {
  min-width: 5.5ch; text-align: center;
  font: 600 .95rem/1 var(--sans); color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.slider__hint { text-align: center; font-size: .88rem; color: var(--ink-3); margin-top: .55rem; }

/* --- contacts ----------------------------------------------------------- */
.contact { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; } }

.contact__name { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-bottom: .2em; }
.contact__role { color: var(--ink-3); margin-bottom: 1.6rem; }

.clist { list-style: none; margin: 0; padding: 0; }
.clist li { margin: 0; border-top: 1px solid var(--line); }
.clist li:first-child { border-top: 0; }

.clist a, .clist .crow {
  display: flex; align-items: center; gap: 1rem;
  padding: .95rem .3rem; text-decoration: none; color: var(--ink);
  border-radius: 10px;
}
.clist a:hover { background: var(--accent-bg); color: var(--ink); }

.clist .ico {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent-2);
}
.clist .ico svg { width: 20px; height: 20px; fill: currentColor; }
.clist .lbl { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.clist .val { display: block; font-weight: 600; overflow-wrap: anywhere; }

/* --- CTA band ----------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, #1b2740 0%, #123c46 100%);
  color: rgba(255, 255, 255, .8);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 5vw, 3.2rem);
  text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(1.4rem, 3.4vw, 2.1rem); }
.cta p { max-width: 56ch; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }

/* --- footer ------------------------------------------------------------- */
.site-foot {
  background: #16203a; color: rgba(255, 255, 255, .62);
  padding: clamp(2.2rem, 6vw, 3.4rem) 0 1.6rem;
  font-size: .95rem;
}
.site-foot__grid { display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .site-foot__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

.site-foot h2 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--sans); margin-bottom: 1rem; }
.site-foot a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-foot a:hover { color: #7fd3dd; text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .55rem; }
.site-foot .brand { font-size: 1.05rem; margin-bottom: .8rem; }

.site-foot__bottom {
  margin-top: 2.2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  font-size: .87rem; color: rgba(255, 255, 255, .6);
}

/* --- сторінка «AI-агенти та Telegram-боти» ------------------------------- */

/* внутрішня навігація по розділах сторінки */
.jump { padding-bottom: 0; }
.jump__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
}
.jump__list li { margin: 0; }
.jump__list a {
  display: inline-block;
  padding: .45rem .95rem;
  font-size: .92rem; font-weight: 600; text-decoration: none;
  color: var(--accent-2); background: var(--accent-bg);
  border: 1px solid transparent; border-radius: 999px;
}
.jump__list a:hover { background: #d5ebee; border-color: #b6dde2; color: var(--accent-2); }

/* сітка у дві колонки */
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

/* картка-визначення: бот проти AI-агента */
.def { border-top: 4px solid var(--line); }
.def--accent { border-top-color: var(--accent); }
.def__tag {
  font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .8rem;
}
.def--accent .def__tag { color: var(--accent-2); }
.def h3 { font-size: 1.2rem; }
.def__note {
  margin-top: 1.2rem; padding-top: .9rem;
  border-top: 1px dashed var(--line);
  font-size: .93rem; color: var(--ink-3);
}

/* врізка з акцентом */
.callout {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.2rem, 3vw, 1.8rem);
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout--plain { background: transparent; border-left-color: var(--line); color: var(--ink-3); }
.callout p + p { margin-top: .8rem; }

.callout__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem;
  margin-top: 1.1rem;
}
.callout__hint { font-size: .89rem; color: var(--ink-3); }

/* ланцюжок «як проходить запит» */
.h-mid { text-align: center; font-size: 1.15rem; margin-bottom: 1.4rem; }
.mt-lg { margin-top: clamp(1.8rem, 5vw, 2.8rem); }
.section--top-0 { padding-top: clamp(1.8rem, 5vw, 3rem); }

.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.6rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
}
.flow__step {
  position: relative; margin: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}
.flow__num {
  position: absolute; top: -14px; left: 1.1rem;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font: 700 .85rem/1 var(--sans);
  border-radius: 50%;
}
.flow__step h4 {
  font-family: var(--sans); font-size: 1rem; font-weight: 700;
  margin: .3rem 0 .45rem;
}
.flow__step p { font-size: .92rem; color: var(--ink-3); margin: 0; }

/* стрілка між кроками — лише коли вони справді стоять поруч */
@media (min-width: 1000px) {
  .flow__step::after {
    content: ''; position: absolute; top: 50%; right: -.72rem;
    width: .5rem; height: .5rem;
    border-right: 2px solid #b6c6d6; border-top: 2px solid #b6c6d6;
    transform: translateY(-50%) rotate(45deg);
  }
  .flow__step:last-child::after { display: none; }
}

/* картка-перевага */
.feat { display: flex; flex-direction: column; padding: 1.6rem 1.5rem; }
.feat__ico {
  flex: none; width: 44px; height: 44px; margin-bottom: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent-2); border-radius: 12px;
}
.feat__ico svg { width: 22px; height: 22px; fill: currentColor; }
.feat h3 { font-family: var(--sans); font-size: 1.06rem; margin-bottom: .55rem; }
.feat p, .feat li { font-size: .95rem; color: var(--ink-3); }
.feat ul { margin-bottom: 0; }
.feat li:last-child { margin-bottom: 0; }

/* етапи розробки */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps .step {
  position: relative; margin: 0;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.1rem;
  padding-bottom: clamp(1.6rem, 4vw, 2.2rem);
}
.step__mark { position: relative; }
.step__mark span {
  position: relative; z-index: 1;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--accent-2);
  border: 2px solid var(--accent); border-radius: 50%;
  font: 700 1.02rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
}
/* вертикальна лінія, що з'єднує кроки */
.step:not(:last-child) .step__mark::before {
  content: ''; position: absolute; left: 50%; top: 56px; bottom: -1rem;
  width: 2px; margin-left: -1px; background: var(--line);
}
.step__body {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
}
.step__body h3 { font-family: var(--slab); font-size: 1.15rem; margin-bottom: .3rem; }
.step__meta {
  font: 600 .82rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: .9rem;
}
.step__out {
  margin-top: 1rem; padding-top: .85rem;
  border-top: 1px dashed var(--line);
  font-size: .93rem; color: var(--ink-3);
}

@media (max-width: 560px) {
  .steps .step { grid-template-columns: 44px minmax(0, 1fr); gap: .8rem; }
  .step__mark span { width: 44px; height: 44px; font-size: .92rem; }
  .step:not(:last-child) .step__mark::before { top: 44px; }
  .step__body { padding: 1.1rem 1.1rem; }
}

/* часті питання */
.faq { max-width: 78ch; margin-inline: auto; }
.faq details.more { margin-top: 0; border-top: 0; border-bottom: 1px solid var(--line); }
.faq details.more > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  width: 100%; margin: 0; padding: 1.05rem .6rem;
  font-family: var(--slab); font-size: 1.03rem; color: var(--ink);
  background: transparent; border-radius: 10px;
}
.faq details.more > summary:hover { background: var(--accent-bg); color: var(--accent-2); }
.faq details.more > summary::after { margin-left: 0; }
.faq details.more[open] > summary { margin-bottom: 0; color: var(--accent-2); }
.faq .more__body { padding: 0 .6rem 1.2rem; }

/* --- misc --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
