/* ═══════════════════════════════════════════════════════════════
   PotokConnect — продающий сайт + блог.
   Стиль: Connect Design — светлая база, чёрные панели, пастельные
   карточки, акцент #027AF5, мята #8FE3AE. Референсы заказчика 16.11.2026.
   ═══════════════════════════════════════════════════════════════ */
:root {
    --ink: #111111;
    --ink2: #696969;
    --ink3: #9d9d9d;
    --line: #e7e7ea;
    --paper: #f9fafb;
    --white: #ffffff;
    --acc: #027af5;
    --acc-dark: #0260c4;
    --mint: #8fe3ae;
    --past-cream: #f9f5ed;
    --past-peach: #fcf1e8;
    --past-green: #e9f5ea;
    --past-blue: #e9f2fd;
    --past-gray: #f1f3f5;
    --ink-panel: #101014;
    --r-lg: 28px;
    --r-md: 24px;
    --r-sm: 16px;
    --shadow: 0 10px 30px rgba(17, 17, 17, .07);
    --shadow-lg: 0 24px 60px rgba(17, 17, 17, .14);
    --font: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.14; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(17px, 1.8vw, 20px); }

/* ── Шапка ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(240, 240, 241, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 26px; height: 26px; border-radius: 50%; border: 7px solid var(--ink); display: inline-block; }
.logo-mark.lg { width: 34px; height: 34px; border-width: 9px; }
.logo-img { height: 26px; width: auto; display: block; }
.logo-word { font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }
.logo-word b { font-weight: 800; }
.header-nav { display: flex; gap: 22px; margin-left: auto; }
.header-nav a { font-size: 14px; font-weight: 600; color: var(--ink2); transition: color .15s; }
.header-nav a:hover, .header-nav a.act { color: var(--ink); }
.header-cta { display: flex; gap: 10px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 10px 20px 18px; border-top: 1px solid var(--line); }
.mobile-nav a { padding: 10px 4px; font-weight: 600; font-size: 15px; }

/* ── Кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; font-family: var(--font); border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: var(--shadow); }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn-arrow { font-weight: 700; }

/* ── Чипы ── */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; }
.chip-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row.center { justify-content: center; }

/* ── Hero (A — внимание) ── */
.hero { position: relative; overflow: hidden; padding: 64px 0 0; background: linear-gradient(180deg, #e9eef7 0%, var(--paper) 100%); }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(60% 60% at 50% 30%, rgba(2, 122, 245, .10), transparent 70%); pointer-events: none; }
.hero-in { position: relative; text-align: center; }
.hero-h1 { font-size: clamp(34px, 5.4vw, 62px); max-width: 900px; margin: 22px auto 0; }
.h1-chip { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: .08em .55em .12em; white-space: nowrap; }
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink2); max-width: 640px; margin: 18px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-shot { position: relative; max-width: 1060px; margin: 52px auto 0; }
.hero-shot img { border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.float-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 16px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.float-card b { font-size: 17px; letter-spacing: -0.02em; }
.float-card span { font-size: 11px; color: var(--ink2); }
.float-1 { left: -14px; top: 24%; animation: floatY 6s ease-in-out infinite; }
.float-2 { right: -14px; bottom: 14%; animation: floatY 7s .8s ease-in-out infinite; }
.float-2 .mint-bar { width: 84px; height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--mint) 55%, var(--past-gray) 55%); margin-top: 5px; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.trust-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 26px 0 30px; color: var(--ink2); font-size: 13px; font-weight: 600; }
.trust-row i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink3); }

/* ── Секции ── */
.sec { padding: 76px 0; }
.sec-gray { background: var(--white); border-radius: var(--r-lg); margin: 0 12px; }
@media (min-width: 1240px) { .sec-gray { margin: 0; border-radius: 0; } .sec-gray .wrap { padding: 0 20px; } }
.sec-head { margin-bottom: 40px; max-width: 720px; }
.sec-head .chip { margin-bottom: 14px; }
.sec-head p { color: var(--ink2); margin-top: 12px; font-size: 16px; }
.sec-head.split { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: none; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── Боли (I) ── */
.pain-card { background: #fff; border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow); }
.pain-num { font-size: 12px; font-weight: 700; color: var(--ink3); letter-spacing: .08em; }
.pain-card h3 { margin: 14px 0 10px; }
.pain-card p { color: var(--ink2); font-size: 14.5px; }

/* ── Возможности (I) ── */
.feat-card { position: relative; background: #fff; border-radius: var(--r-md); padding: 30px 28px; border: 1px solid var(--line); }
.feat-num { position: absolute; top: 24px; right: 26px; font-size: 12px; font-weight: 700; color: var(--ink3); }
.feat-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--past-blue); color: var(--acc); margin-bottom: 18px; }
.feat-ic svg { width: 29px; height: 29px; }
.feat-card p { color: var(--ink2); font-size: 14.5px; margin-top: 10px; }

/* ── Скрины (D) ── */
.shot-row { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
.shot-row:last-child { margin-bottom: 0; }
.shot-row.rev { grid-template-columns: 1fr 380px; }
.shot-row.rev .shot-text { order: 2; }
.shot-row.rev .shot-fig { order: 1; }
.shot-text h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 12px; }
.shot-text p { color: var(--ink2); font-size: 15px; }
.shot-fig img { border-radius: var(--r-md); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.ticks { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; font-size: 14px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--past-green) center/10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23158536' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5 9.5 17.5 19.5 6.5'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .shot-row, .shot-row.rev { grid-template-columns: 1fr; gap: 20px; } .shot-row.rev .shot-text { order: 1; } .shot-row.rev .shot-fig { order: 2; } }

/* ── Для кого (D) ── */
.aud-card { position: relative; background: #fff; border-radius: var(--r-md); padding: 30px; }
.aud-card h3 { margin-bottom: 10px; }
.aud-card p { color: #4a4a4a; font-size: 14.5px; }
.pc-cream { background: var(--past-cream); }
.pc-blue { background: var(--past-blue); }
.pc-green { background: var(--past-green); }
.pc-peach { background: var(--past-peach); }

/* ── Сравнение (D) ── */
.table-wrap { background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp th, .cmp td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cmp th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); background: var(--past-gray); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { font-weight: 600; max-width: 380px; }
.cmp-acc { background: rgba(2, 122, 245, .05); }
.mark { display: inline-flex; }
.mark svg { width: 10px; height: 10px; }
.mark.yes { color: var(--acc); }
.mark.no { color: #c6c6cb; }

/* ── CTA-панель (A — действие) ── */
.dark-panel { position: relative; overflow: hidden; background: var(--ink-panel); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); }
.dark-panel h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.step { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 26px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--ink); font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--ink2); font-size: 14px; margin-top: 8px; }
.dark-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 34px; }
.dark-note { color: rgba(255, 255, 255, .66); font-size: 13px; max-width: 380px; }
.dark-dots { position: absolute; right: 40px; bottom: 30px; width: 220px; height: 60px; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.5px, transparent 1.5px); background-size: 16px 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq { background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); padding: 8px 28px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; inset: 8px 0; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.faq-x::after { transform: rotate(90deg); }
.faq-item[open] .faq-x::after { transform: rotate(0); }
.faq-a { padding: 0 0 20px; color: var(--ink2); font-size: 14.5px; }

/* ── Блог ── */
.page-head { padding: 56px 0 10px; }
.page-head + .sec { padding-top: 30px; }
.crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink3); font-weight: 600; margin-bottom: 18px; }
.crumbs a:hover { color: var(--acc); }
.crumbs span:not(:first-child)::before { content: "·"; margin-right: 8px; }
.blog-grid { align-items: stretch; }
.post-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow); border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--acc); transform: translateY(-2px); }
.post-card time { font-size: 12px; font-weight: 700; color: var(--ink3); letter-spacing: .04em; text-transform: uppercase; }
.post-card h2, .post-card h3 { font-size: 19px; }
.post-card p { color: var(--ink2); font-size: 14px; flex: 1; }
.link-more { color: var(--acc); font-weight: 700; font-size: 14px; }
.empty-note { background: #fff; border-radius: var(--r-md); padding: 40px; text-align: center; color: var(--ink2); }
.article-body { font-size: 16px; }
.article-body p { margin: 14px 0; color: #333; }
.article-body h2 { font-size: 26px; margin: 34px 0 6px; }
.article-body h3 { font-size: 20px; margin: 26px 0 4px; }
.article-body ul, .article-body ol { margin: 14px 0 14px 22px; color: #333; }
.article-body li { margin: 6px 0; }
.article-body a { color: var(--acc); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--acc); background: #fff; border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 14px 18px; margin: 16px 0; color: var(--ink2); }
.article-body img { border-radius: var(--r-sm); margin: 16px 0; }
.article-body code { background: var(--past-gray); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.post-meta { color: var(--ink3); font-size: 13.5px; font-weight: 600; margin-top: 14px; }
.article-cta { margin-top: 44px; background: var(--ink-panel); color: #fff; border-radius: var(--r-md); padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.article-cta p { color: rgba(255, 255, 255, .75); margin: 0; max-width: 440px; font-size: 14.5px; }

/* ── Админка блога ── */
.admin-wrap { max-width: 560px; margin: 60px auto; padding: 0 20px; }
.admin-wrap.wide { max-width: 980px; }
.admin-card { background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.admin-card h1 { font-size: 24px; }
.admin-card .hint { color: var(--ink3); font-size: 13px; }
.admin-card input[type="text"], .admin-card input[type="password"], .admin-card textarea, .admin-card select { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--font); font-size: 14px; background: var(--past-gray); }
.admin-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.admin-card label.check { flex-direction: row; align-items: center; gap: 10px; }
.admin-card .mono { font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace; font-size: 13px; line-height: 1.6; }
.admin-card.form { max-width: 760px; margin: 0 auto 40px; }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.admin-ok { background: var(--past-green); border: 1px solid #bfe6c6; color: #158536; border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.pw { font-family: ui-monospace, Consolas, monospace; font-size: 15px; background: var(--past-gray); padding: 2px 8px; border-radius: 6px; }
.admin-err { background: var(--past-peach); border: 1px solid #f0cdb8; color: #c2500d; border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); }
.admin-top-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 62px; flex-wrap: wrap; }
.admin-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: middle; }
.admin-table th { color: var(--ink3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: var(--past-green); color: #158536; }
.badge.draft { background: var(--past-gray); color: var(--ink2); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline { display: inline-flex; margin: 0; }
.small { color: var(--ink3); font-size: 12px; }
.danger { color: #c2500d; }

/* ── Подвал ── */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; padding: 44px 20px 30px; }
.footer-brand p { color: var(--ink2); font-size: 13.5px; max-width: 420px; margin-top: 12px; }
.footer-nav { display: flex; gap: 44px; }
.footer-nav > div { display: flex; flex-direction: column; gap: 8px; }
.footer-cap { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); font-weight: 700; margin-bottom: 4px; }
.footer-nav a { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.footer-nav a:hover { color: var(--acc); }
.footer-bottom { display: flex; justify-content: space-between; padding: 16px 20px 26px; color: var(--ink3); font-size: 12.5px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .footer-in { grid-template-columns: 1fr; } .footer-nav { flex-wrap: wrap; gap: 24px; } }

/* ── Адаптив ── */
@media (max-width: 960px) {
    .header-nav, .header-cta { display: none; }
    .burger { display: block; }
    .mobile-nav.open { display: flex; }
    .hero { padding-top: 40px; }
    .float-1 { left: 6px; } .float-2 { right: 6px; }
    .sec { padding: 52px 0; }
}
