/* ═══════════════════════════════════════════════════════════
   Фин.IQ — сайт v3
   Деловая, сдержанная эстетика для руководителей и финдиров.
   Палитра и шрифты унаследованы от предыдущей версии сайта.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --ink: #0E1F3C;
  --ink-2: #33455F;
  --muted: #71829B;
  --line: #E1E8F2;
  --brand: #00A984;
  --brand-deep: #007D62;
  --brand-soft: #E5F6F1;
  --navy: #10294D;
  --accent-blue: #1668C7;
  --accent-violet: #6C4FD8;
  --accent-warm: #C7601F;
  --danger: #C0392B;
  --ok: #22C55E;
  --warn: #EAB308;
  --display: 'PT Serif', Georgia, serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(14,31,60,0.07), 0 4px 14px -6px rgba(14,31,60,0.06);
  --shadow-md: 0 4px 24px -8px rgba(14,31,60,0.14);
  --shadow-lg: 0 24px 60px -24px rgba(14,31,60,0.22);
  --maxw: 1160px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.55;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
h1,h2,h3,h4 { font-family: var(--display); color: var(--ink); font-weight:700; letter-spacing:-0.01em; }
.wrap { max-width: var(--maxw); margin:0 auto; padding:0 28px; }
button, input, textarea, select { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  * { animation:none !important; transition:none !important; }
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top:0; z-index:200;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin:0 auto; padding: 0 28px;
  display:flex; align-items:center; justify-content:space-between;
  height: 68px;
}
.logo { display:flex; align-items:center; gap:10px; font-weight:700; font-size:29px; color:var(--ink); font-family:var(--display); letter-spacing:-0.01em; }
.logo-mark { width:45px; height:45px; background: url('../images/finiq-icon-4d.png?v=2') no-repeat center/contain; flex-shrink:0; position:relative; }
.logo-iq { color:var(--brand); }
.logo small { display:block; font-size:9.5px; font-weight:600; color:var(--muted); letter-spacing:0.08em; text-transform:uppercase; margin-top:-2px; }

.nav-menu { display:flex; align-items:center; gap:30px; }
.nav-menu a { font-size:14px; font-weight:500; color:var(--ink-2); padding:6px 0; border-bottom:2px solid transparent; transition:all .15s; }
.nav-menu a:hover { color:var(--ink); }
.nav-menu a.active { color:var(--brand-deep); border-bottom-color:var(--brand); }

.nav-actions { display:flex; align-items:center; gap:14px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-weight:600; font-size:14px; font-family:var(--body);
  cursor:pointer; border:none; transition: all .18s;
  white-space:nowrap;
}
.btn-primary { background: var(--navy); color:#fff; }
.btn-primary:hover { background: var(--brand-deep); transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn-brand { background: var(--brand); color:#fff; }
.btn-brand:hover { background: var(--brand-deep); transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn-outline { background:transparent; color:var(--ink); border:1.5px solid var(--line); }
.btn-outline:hover { border-color:var(--navy); }
.btn-lg { padding:15px 30px; font-size:15.5px; }
.btn-sm { padding:8px 16px; font-size:13px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2.5px solid var(--brand); outline-offset:2px;
}

.burger { display:none; background:none; border:none; cursor:pointer; padding:11px; }
.burger span { display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; transition:all .2s; }

@media (max-width: 920px) {
  .nav-menu { display:none; position:absolute; top:68px; left:0; right:0; background:#fff; flex-direction:column; padding:12px 28px 20px; gap:2px; border-bottom:1px solid var(--line); box-shadow:var(--shadow-md); align-items:stretch; max-height:calc(100vh - 68px); overflow-y:auto; }
  .nav-menu.open { display:flex; }
  .nav-menu a:not(.nav-menu-cta) { padding:13px 0; border-bottom:1px solid var(--line); font-size:15.5px; }
  .nav-menu a:last-of-type { border-bottom:none; }
  .burger { display:block; }
  /* «Войти» остаётся видимой в шапке; основной CTA переезжает внутрь открытого мобильного меню */
  .nav-actions .btn-outline { padding:9px 14px; }
  .nav-actions .btn-primary { display:none; }
  .nav-menu-cta { display:flex !important; width:100%; justify-content:center; margin-top:6px; }
}
@media (max-width: 480px) {
  .nav { padding:0 16px; }
  .nav-actions .btn-sm { padding:8px 12px; font-size:12.5px; }
  .logo-mark { width:34px; height:34px; }
  .logo span:not(.logo-mark) { font-size:23px; }
}
.nav-menu-cta { display:none; }

/* ── SECTIONS ───────────────────────────────────────────── */
section { padding: 78px 0; }
.section-label {
  font-family:var(--mono); font-size:11.5px; font-weight:500;
  letter-spacing:0.14em; text-transform:uppercase; color:var(--brand-deep);
  display:block; margin-bottom:14px;
}
.section-title { font-size: clamp(24px, 3.4vw, 38px); line-height:1.2; margin-bottom:16px; }
.section-sub { font-size:16.5px; color:var(--muted); max-width:640px; line-height:1.6; }
.center { text-align:center; }
.center .section-sub { margin-left:auto; margin-right:auto; }
@media (max-width:600px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 18px; }
  .section-sub { font-size:15px; }
}

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--radius-lg); padding:28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); }
@media (max-width:600px) { .card { padding:20px; } }

/* ── HERO ───────────────────────────────────────────────── */
.hero { padding: 84px 0 70px; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%); border-bottom:1px solid var(--line); }
.hero-grid { display:grid; grid-template-columns: 0.92fr 1.18fr; gap:52px; align-items:center; }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--brand); color:var(--brand-deep);
  background: var(--brand-soft);
  font-size:12px; font-weight:600; letter-spacing:0.04em;
  padding: 7px 16px; border-radius:100px; margin-bottom:24px;
}
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); line-height:1.14; margin-bottom:22px; }
.hero h1 em { font-style:normal; color:var(--brand-deep); }
.hero .lead { font-size:17.5px; color:var(--ink-2); line-height:1.65; max-width:520px; margin-bottom:14px; }
.hero .sublead { font-size:14.5px; color:var(--muted); margin-bottom:32px; }
.hero-ctas { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:30px; }
.hero-props { display:flex; gap:24px; flex-wrap:wrap; font-size:13px; color:var(--muted); }
.hero-props span { display:flex; align-items:center; gap:6px; }
.hero-props svg { width:15px; height:15px; color:var(--brand); flex-shrink:0; }

.hero-shot { border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-lg); }
.hero-shot img { width:100%; }
.hero-shot-caption { font-size:12px; color:var(--muted); text-align:center; margin-top:12px; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns:1fr; gap:40px; }
  .hero .lead { max-width:none; }
}
@media (max-width:600px) {
  .hero { padding:20px 0 32px; }
  /* Скриншот и заголовок видны сразу, без скролла — картинка идёт первой, текст компактнее */
  .hero-grid > div:first-child { order:2; }
  .hero-grid > div:last-child { order:1; margin-bottom:4px; }
  .hero h1 { margin-bottom:12px; }
  .hero .lead { font-size:15px; margin-bottom:10px; }
  .hero .sublead { margin-bottom:18px; }
  .hero-ctas { margin-bottom:20px; }
  .hero-ctas .btn { width:100%; }
  .hero-props { gap:14px 20px; }
  .hero-shot-caption { font-size:11.5px; }
}

/* ── SCREENSHOT ZOOM ────────────────────────────────────── */
/* По клику скриншот плавно раскрывается из центра до фиксированного размера,
   без затемнения фона, рамки или тени — просто увеличенная картинка.
   Размер задан в vw/vh (не transform:scale), поэтому кадр всегда помещается
   в экран пользователя целиком, на любом мониторе — от ноутбука до широкого монитора.
   object-fit:contain сохраняет пропорции без искажений и обрезки.
   Работает одинаково на всех страницах сайта, где есть класс .shot.
   Открытие/закрытие управляется классом .is-open через js/main.js (клик, не hover) —
   поэтому одинаково работает и на десктопе, и на touch-устройствах. */
.shot {
  /* Без isolation:isolate — иначе каждый .shot сравнивается по z-index только
     со своими соседями, а не глобально, и раскрытый скриншот может оказаться
     под другим .shot ниже по странице ("картинка в картинке"). */
  border-radius: var(--radius-lg); overflow:hidden;
  border:1px solid var(--line); box-shadow: var(--shadow-lg);
  cursor: zoom-in; position:relative; background:var(--surface);
}
.shot img {
  width:100%; display:block; border-radius: var(--radius-lg);
  position:relative; z-index:2;
}

/* Статичный вариант — без раскрытия по hover, с фиксированной высотой,
   чтобы два разных по пропорциям скриншота выглядели в одном масштабе рядом. */
.shot-static {
  border-radius: var(--radius-lg); overflow:hidden;
  border:1px solid var(--line); box-shadow: var(--shadow-lg);
  height:380px;
}
.shot-static img { width:100%; height:100%; object-fit:cover; object-position:top; display:block; }
@media (max-width:600px) { .shot-static { height:260px; } }

.shot img {
  transition: width .45s cubic-bezier(.22,.68,.32,1), height .45s cubic-bezier(.22,.68,.32,1);
}

/* Раскрывающиеся скрины одинаковой высоты в ряд (напр. Платежи / Бюджет проекта) —
   чтобы заголовки и текст под ними были на одном уровне, а не «прыгали» из-за
   разных пропорций исходных скриншотов. */
.shot-h { height:380px; }
.shot-h img { height:100%; object-fit:cover; object-position:top; }
@media (max-width:600px) { .shot-h { height:260px; } }
.shot.is-open img {
  position: fixed; top:50%; left:50%; transform:translate(-50%,-50%);
  width: min(78vw, 1400px);
  height: min(80vh, 900px);
  object-fit: contain;
  border-radius: 0;
  z-index:901;
  cursor: zoom-out;
}

/* ── FEATURE ROW (текст + скриншот) ────────────────────── */
.feature-row { display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center; }
.feature-row.reverse .shot { order:-1; }
@media (max-width:940px) {
  .feature-row, .feature-row.reverse { grid-template-columns:1fr; }
  .feature-row.reverse .shot { order:0; }
}

/* ── TRAFFIC LIGHT LEGEND ───────────────────────────────── */
.tl-legend { display:flex; gap:16px; flex-wrap:wrap; }
.tl-dot { display:flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:var(--ink-2); }
.tl-dot::before { content:""; width:10px; height:10px; border-radius:50%; background:var(--dot,#999); flex-shrink:0; }
.tl-dot.ok { --dot: var(--ok); }
.tl-dot.warn { --dot: var(--warn); }
.tl-dot.danger { --dot: var(--danger); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--navy); color:#B8C6DB; padding: 56px 0 32px; margin-top:40px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,0.12); }
.footer-brand .logo { color:#fff; margin-bottom:14px; }
.footer-brand .logo-mark { background-image: url('../images/finiq-icon-4d-dark-bg.png?v=2'); }
.footer-brand p { font-size:13px; line-height:1.6; color:#8FA2BD; max-width:260px; }
.footer-col h4 { color:#fff; font-family:var(--body); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:16px; }
.footer-col a { display:block; font-size:13.5px; color:#B8C6DB; margin-bottom:10px; transition:color .15s; }
.footer-col a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:24px; font-size:12.5px; color:#8FA2BD; }
@media (max-width: 800px) { .footer-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns:1fr; gap:28px; } .footer-bottom { justify-content:flex-start; } }

/* ── CHAT WIDGET ────────────────────────────────────────── */
.chat-fab {
  position:fixed; bottom:26px; right:26px; z-index:500;
  width:58px; height:58px; border-radius:50%;
  background: var(--brand); border:none; cursor:pointer;
  box-shadow: 0 10px 30px -8px rgba(0,169,132,0.6);
  display:flex; align-items:center; justify-content:center;
  transition: transform .2s, background .2s;
}
.chat-fab:hover { transform:scale(1.07); background:var(--brand-deep); }
.chat-fab svg { width:26px; height:26px; color:#fff; }
.chat-fab .chat-dot { position:absolute; top:4px; right:4px; width:12px; height:12px; background:#E74C3C; border-radius:50%; border:2px solid #fff; }

.chat-panel {
  position:fixed; bottom:98px; right:26px; z-index:500;
  width:360px; max-width:calc(100vw - 40px); height:480px; max-height:calc(100vh - 140px);
  background:#fff; border-radius:16px; box-shadow: 0 24px 70px -18px rgba(14,31,60,0.4);
  border:1px solid var(--line);
  display:none; flex-direction:column; overflow:hidden;
}
.chat-panel.open { display:flex; animation: chatIn .25s ease; }
@keyframes chatIn { from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }

.chat-head { background:var(--navy); color:#fff; padding:16px 20px; display:flex; align-items:center; gap:12px; }
.chat-head .avatar { width:38px; height:38px; border-radius:50%; background:var(--brand); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; flex-shrink:0; }
.chat-head .info { flex:1; min-width:0; }
.chat-head .name { font-weight:700; font-size:14px; }
.chat-head .status { font-size:11.5px; color:#9FE8D5; display:flex; align-items:center; gap:5px; }
.chat-head .status::before { content:""; width:7px; height:7px; border-radius:50%; background:#2ECC71; }
.chat-close { background:none; border:none; color:#B8C6DB; cursor:pointer; font-size:20px; padding:4px; }

.chat-body { flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:12px; background:#F7F9FC; }
.chat-msg { max-width:80%; padding:11px 15px; border-radius:14px; font-size:13.5px; line-height:1.5; }
.chat-msg.bot { background:#fff; border:1px solid var(--line); border-bottom-left-radius:4px; align-self:flex-start; }
.chat-msg.user { background:var(--brand); color:#fff; border-bottom-right-radius:4px; align-self:flex-end; }
.chat-quick { display:flex; flex-wrap:wrap; gap:8px; }
.chat-quick button { background:#fff; border:1px solid var(--brand); color:var(--brand-deep); font-size:12px; font-weight:600; padding:7px 13px; border-radius:100px; cursor:pointer; transition: all .15s; }
.chat-quick button:hover { background:var(--brand-soft); }

.chat-input { display:flex; border-top:1px solid var(--line); background:#fff; }
.chat-input input { flex:1; border:none; padding:15px 18px; font-size:13.5px; font-family:var(--body); outline:none; min-width:0; }
.chat-input button { background:none; border:none; padding:0 18px; cursor:pointer; color:var(--brand); }
.chat-input button svg { width:20px; height:20px; }
@media (max-width:480px) {
  .chat-panel { right:12px; left:12px; width:auto; bottom:90px; }
  .chat-fab { right:16px; bottom:16px; }
}

/* ── COOKIE BAR ─────────────────────────────────────────── */
.cookie-bar { position:fixed; bottom:0; left:0; right:0; z-index:400; background:var(--navy); color:#D5DFEC; font-size:13px; padding:14px 28px; display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:wrap; }
.cookie-bar button { background:var(--brand); border:none; color:#fff; font-weight:600; padding:8px 20px; border-radius:8px; cursor:pointer; font-size:13px; }
.cookie-bar.hidden { display:none; }

/* ── UTILITIES ──────────────────────────────────────────── */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
@media (max-width:940px){ .grid-3,.grid-4{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;} }

/* ── ПОСЛЕДОВАТЕЛЬНОСТЬ ШАГОВ (Шаг 1 → 2 → 3 → 4) ──────── */
.steps-row { display:flex; align-items:stretch; gap:0; }
.step-card { flex:1; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow-sm); min-width:0; }
.step-num { width:32px; height:32px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--mono); font-weight:700; font-size:14px; margin-bottom:14px; flex-shrink:0; }
.step-arrow { display:flex; align-items:center; justify-content:center; width:36px; color:var(--brand); flex-shrink:0; }
.step-arrow svg { width:20px; height:20px; }
@media (max-width:900px) {
  .steps-row { flex-direction:column; }
  .step-arrow { width:auto; height:28px; transform:rotate(90deg); }
}

.icon-tile { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.icon-tile svg { width:21px; height:21px; }
.t-brand { background:var(--brand-soft); } .t-brand svg { color:var(--brand-deep); }
.t-blue { background:#E8F1FC; } .t-blue svg { color:var(--accent-blue); }
.t-violet { background:#EFEAFB; } .t-violet svg { color:var(--accent-violet); }
.t-warm { background:#FBEEE4; } .t-warm svg { color:var(--accent-warm); }
.t-navy { background:#E8EDF5; } .t-navy svg { color:var(--navy); }

.check-list { list-style:none; }
.check-list li { display:flex; gap:10px; margin-bottom:11px; font-size:14px; align-items:flex-start; }
.check-list svg { width:17px; height:17px; color:var(--brand); flex-shrink:0; margin-top:2px; }

.divider { height:1px; background:var(--line); border:none; }

.badge { display:inline-block; font-size:11px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; padding:4px 12px; border-radius:100px; }
.badge-free { background:var(--brand-soft); color:var(--brand-deep); }
.badge-store { background:#E8F1FC; color:var(--accent-blue); }
.badge-custom { background:#EFEAFB; color:var(--accent-violet); }

.bank-badge {
  display:inline-flex; align-items:center;
  padding:9px 18px; border-radius:8px;
  background:var(--bg); border:1px solid var(--line);
  font-family:var(--body); font-weight:600; font-size:13px; color:var(--ink-2);
}
.bank-cloud {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:28px 46px; padding:6px 0;
}
.bank-cloud img { display:block; width:auto; }

.reveal { opacity:0; transform:translateY(16px); transition:opacity .5s ease, transform .5s ease; }
/* transform:none (не translateY(0)) — важно: любой transform, отличный от none,
   создаёт новый containing block для position:fixed потомков и ломает раскрытие
   скриншотов (.shot) внутри карточек с классом .reveal. */
.reveal.in { opacity:1; transform:none; }

/* ── PAGE HERO (внутренние страницы) ───────────────────── */
.page-hero { padding:60px 0 44px; background:#fff; border-bottom:1px solid var(--line); }
.page-hero h1 { font-size:clamp(28px,3.6vw,42px); margin-bottom:14px; }
.breadcrumb { font-size:12.5px; color:var(--muted); margin-bottom:18px; }
.breadcrumb a:hover { color:var(--brand-deep); }

/* ── RESPONSIVE TABLE (тарифы, сравнение) ──────────────── */
.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:var(--radius-lg); border:1px solid var(--line); }
.table-scroll table { border-collapse:collapse; width:100%; min-width:640px; background:#fff; }
.table-scroll th, .table-scroll td { padding:13px 16px; text-align:left; font-size:13.5px; border-bottom:1px solid var(--line); white-space:nowrap; }
.table-scroll th { background:var(--bg); font-weight:700; color:var(--ink); position:sticky; top:0; }
.table-scroll tr:last-child td { border-bottom:none; }
.table-scroll td.yes { color:var(--brand-deep); font-weight:700; }
.table-scroll td.no { color:var(--line); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item { border:1px solid var(--line); border-radius:var(--radius); background:#fff; margin-bottom:12px; overflow:hidden; }
.faq-q { width:100%; text-align:left; background:none; border:none; padding:18px 20px; font-family:var(--body); font-weight:700; font-size:14.5px; color:var(--ink); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.faq-q svg { width:18px; height:18px; color:var(--muted); flex-shrink:0; transition:transform .2s; }
.faq-item.open .faq-q svg { transform:rotate(180deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-item.open .faq-a { max-height:400px; }
.faq-a p { padding:0 20px 18px; font-size:14px; color:var(--muted); line-height:1.6; }

/* ── FORM ───────────────────────────────────────────────── */
.field { margin-bottom:18px; }
.field label { display:block; font-size:12.5px; font-weight:600; color:var(--ink-2); margin-bottom:7px; }
.field input, .field textarea, .field select { width:100%; padding:13px 16px; border:1.5px solid var(--line); border-radius:10px; font-size:16px; font-family:var(--body); outline:none; transition:border-color .15s; background:#fff; }
.field input:focus, .field textarea:focus, .field select:focus { border-color:var(--brand); }
.field textarea { min-height:110px; resize:vertical; }

@media (max-width:380px) {
  .hero h1 { font-size:26px; }
  .btn-lg { padding:13px 22px; font-size:14.5px; }
}

/* «Управленческий учёт» не должно переноситься на две строки ни при каких условиях */
.nowrap { white-space:nowrap; }
@media (max-width:400px) { .hero h1 { font-size:24px; } }
@media (max-width:340px) { .hero h1 { font-size:21px; } }

/* ── ПАСХАЛКА: комар ────────────────────────────────────────
   30 секунд наведения на логотип в шапке — появляется комар
   на велосипеде с гитарой и ноутбуком. Наведение на него самого
   убирает картинку. См. js/main.js. */
.mosquito-egg {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,41,77,0.25);
  animation: mosquito-fade-in .4s ease;
}
.mosquito-egg img {
  width: min(52vw, 720px);
  cursor: pointer;
  filter: drop-shadow(0 24px 50px rgba(14,31,60,0.35));
  animation: mosquito-float 2.6s ease-in-out infinite;
}
@keyframes mosquito-fade-in { from { opacity:0; } to { opacity:1; } }
@keyframes mosquito-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mosquito-egg img { animation:none; }
}
