:root {
  --header-height: 110px;
  --tg-blue: #0088cc;
  --tg-blue-hover: #0077b3;
  --dark: #212121;
  --muted: #5f6368;
  --bg: #fff;
  --border: #eaeaea;
  --success: #27ae60;
  --bg-1: #F3F6F9;
  --bg-2: #FDF4E8;
  --bg-3: #EFF7F6;
  --bg-4: #F5F3F7;
  --maxw: 1240px;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  color: var(--dark);
  background-color: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a{ color: var(--tg-blue); text-decoration: none; }
a:hover{ color: var(--tg-blue-hover); }

.container { max-width: 1920px; margin: 0 auto; padding: 0 40px; }
.content { max-width: var(--maxw); margin: 0 auto; }

h1,h2,h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-weight: 700; font-size: clamp(1.75rem, 3vw + 1rem, 3.75rem); }
h2 { font-weight: 600; color: #444; font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem); text-align: center; margin-bottom: 48px; }
h3 { font-weight: 580; color: #555; font-size: clamp(1.125rem, 0.9vw + 0.6rem, 1.375rem); line-height: 1.35; }
p { font-weight: 400; color: #333; line-height: 1.6; }

section { padding: 72px 0; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  background: var(--tg-blue);
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
  transition: .25s;
  background-image: linear-gradient(to bottom,rgba(255,255,255,.08),rgba(0,0,0,.05));
}
.btn:hover { background: var(--tg-blue-hover); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid #a9dcff; outline-offset: 2px; border-radius: 12px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.header .container {
  display: flex;
  justify-content: center;
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--maxw);
  gap: 32px;
}

/* ЛОГО */
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}
.logo span { color: var(--tg-blue); }

/* НАВИГАЦИЯ */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 28px;
}
.nav a {
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--tg-blue);
  background: rgba(0,136,204,0.06);
}

/* ИИ-БОТ */
.bot-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.bot-link:hover {
  transform: scale(1.03);
  opacity: 0.9;
}
.bot-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.bot-text {
  font-weight: 700;
  color: var(--tg-blue);
  font-size: 1rem;
  line-height: 1;
}

/* Hero */
.hero {
  padding-top: 1px;
  padding-bottom: 0;
  margin-top: 0;
  overflow: hidden;
}
.hero-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 0 40px 20px;
}
.hero-text {
  flex: 1.7;
  min-width: 320px;
  max-width: 800px;
  z-index: 2;
  margin-top: 0;
}
.hero h1 { margin-top: 0; }
.hero-text p {
  color: var(--muted);
  margin: 16px 0 28px;
  line-height: 1.6;
  font-size: clamp(1.125rem, 1.2vw + 0.5rem, 1.375rem);
}

/* Мокап */
.mocup {
  position: relative;
  flex: 1;
  max-width: 720px;
  min-width: 280px;
  transform: translateX(0);
}
.mocup-img {
  display: block;
  width: 100%;
  height: auto;
}
.getFrame {
  position: absolute;
  border: none;
  border-radius: 34px;
  overflow: hidden;
}

/* Макеты */
.desktop-default { display: block; }
.desktop-wide { display: none; }
.mobile-only { display: none; }
.getFrame {
  width: 66.2%;
  height: 89.8%;
  top: 4.4%;
  left: 24%;
}

/* Широкий десктоп */
@media (min-width: 1600px) {
  .desktop-default { display: none; }
  .desktop-wide { display: block; }
  .getFrame {
    width: 68.6%;
    height: 91.0%;
    top: 3.8%;
    left: 22.9%;
    border-radius: 38px;
  }
}

/* Cards и прочее */
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:24px; }
.card { background:#fff; border:1px solid var(--border); border-radius:14px; padding:24px; }
.card p { margin-top:20px; line-height:1.5; }
.soft { background:var(--bg-1); border-color:transparent; }
.benefits { grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
.steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:32px; text-align:center; }
.step-num { font-size:3rem; font-weight:800; color:var(--tg-blue); opacity:.18; line-height:1; margin-bottom:12px; display:block; }
.pricing-grid { display:grid; grid-template-columns:1fr 2fr; gap:28px; margin-bottom:40px; }
.pricing-main { display:flex; gap:28px; }
.pricing-main>div { flex:1; }
.price { font-size:2.8rem; font-weight:400; color:#111; line-height:1.2; margin:8px 0; }
.roles { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.feature-list { list-style:none; padding:0; max-width:640px; margin:0 auto; }
.feature-list li { padding-left:28px; position:relative; margin:.6em 0; }
.feature-list li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--success); font-weight:800; }

.faq { max-width:720px; margin:0 auto; }
.faq details { background:#fff; border:1px solid var(--border); border-radius:10px; margin-bottom:10px; overflow:hidden; }
.faq summary {
  position: relative;
  list-style: none;
  color: #333;
  font-size: 1.25rem;
  line-height: 1.6;
  padding: 18px 20px;
  font-weight: 580;
  cursor: pointer;
  transition: background 0.2s ease;
}
.faq summary:hover {
  background-color: rgba(0, 136, 204, 0.05);
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tg-blue);
  transition: transform 0.25s ease, color 0.25s ease;
}
.faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(0deg);
  color: var(--tg-blue-hover);
}
.faq summary::-webkit-details-marker { display:none; }
.faq div {
  padding:20px 18px;
  font-size:1rem;
  line-height:1.7;
  color:var(--muted);
  border-top:1px solid var(--border);
  margin:0 20px;
}

.footer {
  padding: 36px 0;
  text-align: center;
  background: #2c3e50;
  color: #bdc3c7;
}

.footer-line {
  margin-bottom: 12px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  margin: 0 10px;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
}
.tablet { background:var(--bg-1); padding-bottom:0; }
.tablet-wrap { position:relative; max-width:1200px; margin:auto; }
.tablet-img { width:100%; }
.tablet-widget {
  position:absolute;
  width:59%; height:75.5%;
  top:5.5%; left:20.5%;
  border:none; border-radius:15px;
  overflow:hidden; box-shadow:0 0 0 1px rgba(0,0,0,.05);
}

.case-link { color:var(--tg-blue); text-decoration:none; font-weight:700; display:inline; }
.case-link:hover, .case-link:focus-visible { text-decoration:underline; }

.safety { background:var(--bg-1); padding:72px 0; }
.safety h2 { margin-bottom:48px; }
.safety-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:32px; }
.safety-item { background:#fff; border:1px solid var(--border); border-radius:14px; padding:24px; text-align:center; }
.safety-icon { width:120px; height:120px; margin:0 auto 20px; border-radius:16px; object-fit:cover; box-shadow:0 2px 6px rgba(0,0,0,0.08); }
.safety-item h3 { font-size:1.2rem; font-weight:600; margin-bottom:12px; color:#333; }
.safety-item p { font-size:1rem; line-height:1.5; color:var(--muted); }

#pricing .card { text-align:center; }

/* Планшеты (до 992px) */
@media (max-width: 992px) {
  .hero-wrap {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    gap: 24px;
  }
  .hero-text {
    margin-bottom: 28px;
    max-width: 640px;
    width: 100%;
    margin-top: 0;
  }
  .mocup {
    width: 100%;
    max-width: 100%;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pricing-main {
    flex-direction: column;
  }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
  .header-wrap {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .nav {
    justify-content: space-around;
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    margin-top: 2px;
  }
  .bot-link {
    order: -1;
    margin-top: 4px;
  }
  .bot-text { font-size: 0.95rem; }

  .hero {
    margin-top: 0 !important;
    padding: 0; width: 100%; max-width: none;
  }
  .hero .container, .hero .content, .hero-wrap {
    width: 100%; max-width: none; margin: 0; padding: 0;
  }
  .hero-wrap {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 16px;
  }
  .hero h1 { margin-top: 0 !important; }
  .hero-text {
    width: 100%; max-width: none;
    padding: 0 16px; text-align: center;
    margin-top: clamp(40px, 10vw, 80px);
  }

  .desktop-default, .desktop-wide { display: none !important; }
  .mobile-only { display: block !important; }

  .mocup {
    position: relative; width: 100%; max-width: 100%;
    margin: clamp(24px, 5vw, 48px) auto 10px;
    transform: none;
  }
  .mocup-img { display: block; width: 100%; height: auto; }
  .getFrame {
    position: absolute; width: 78.4%; height: 92.6%;
    top: 3.8%; left: 11.6%;
    border-radius: 34px; border: none; overflow: hidden;
  }
}

/* Социальные доказательства */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.case {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.case h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--dark);
  line-height: 1.4;
}
.case p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  #cases .content { padding: 0 16px; }
  .case { padding: 20px; }
  .case h3 { font-size: 1.05rem; }
  .case p { font-size: 0.95rem; line-height: 1.6; }
}

/* Демонстрация на мониторе */
.desktop-demo { background: var(--bg-1); padding: 72px 0; }
.desktop-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}
.desktop-img { width: 100%; display: block; }
.desktop-widget {
  position: absolute;
  width: 91.2%;
  height: 61.3%;
  top: 6.16%;
  left: 4.4%;
  border: none;
  border-radius: 2.6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
@media (max-width: 992px) {
  .desktop-demo { display: none; }
}

/* Floating Telegram Button */
.tg-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9999;
  cursor: pointer;
}
.tg-icon-svg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tg-float:hover .tg-icon-svg {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.tg-tooltip {
  position: absolute;
  right: 80px;
  bottom: 20px;
  background: #222;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.tg-float:hover .tg-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.tg-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: 14px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #222;
}
@media (max-width: 768px) {
  .tg-float { bottom: 20px; right: 20px; }
  .tg-icon-svg { width: 56px; height: 56px; }
  .tg-tooltip { display: none; }
}
/* Floating VK Button */
.vk-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9999;
  cursor: pointer;
}
.vk-icon-svg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vk-float:hover .vk-icon-svg {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.vk-tooltip {
  position: absolute;
  right: 80px;
  bottom: 20px;
  background: #222;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.vk-float:hover .vk-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.vk-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: 14px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #222;
}
@media (max-width: 768px) {
  .vk-float { bottom: 20px; right: 20px; }
  .vk-icon-svg { width: 56px; height: 56px; }
  .vk-tooltip { display: none; }
}
.footer-telegram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.footer-telegram-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-telegram:hover .footer-telegram-icon {
  opacity: 0.85;
}
/* Buttons must stay white on hover (override any external a:hover) */
a.btn, a.btn:hover, a.btn:focus, a.btn:active, a.btn:visited{
  color:#fff !important;
  text-decoration:none !important;
}

/* Gutenberg кнопки (если где-то есть) */
a.wp-block-button__link,
a.wp-block-button__link:hover,
a.wp-block-button__link:focus,
a.wp-block-button__link:active,
a.wp-block-button__link:visited{
  color:#fff !important;
  text-decoration:none !important;
}
.btn:hover{ color:#fff; }
/* ===============================
   Footer: links stay light on hover
   =============================== */

.footer a{
  color: #bdc3c7;
}

.footer a:hover,
.footer a:focus-visible{
  color: #ffffff;
  text-decoration: none;
}
/* ===============================
   Footer: align telegram link with text links
   =============================== */

.footer-links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-links a,
.footer-telegram{
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.footer-telegram-icon{
  margin-top: 0; /* на случай, если где-то был сдвиг */
}