/* ===== Ruspanets — общие стили ===== */
:root {
  --bg-black: #000000;
  --bg-dark: #0a0a0a;
  --bg-gray: #f2f2f2;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dark: #000000;
  --text-dark-muted: #4a4a4a;
  --accent-cyan: #2be4f2;
  --accent-blue: #2e6bff;
  --accent-violet: #5b3fff;
  --border-light: rgba(255, 255, 255, 0.1);
  --max-w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--text-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* ===== Верхняя навигация (логотип) ===== */
.top-nav {
  background: #000;
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.top-nav .back-arrow {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-cyan);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}
.top-nav .back-arrow {
  animation: pulse-arrow 1.5s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.3); }
}
.top-nav .logo {
  height: 140px;
  width: auto;
}
.top-nav .subtitle {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.3em;
  margin-top: 10px;
  text-transform: uppercase;
}

/* ===== Общая обёртка ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HERO ===== */
.hero {
  background: #000;
  color: #fff;
  padding: 60px 24px 100px;
  text-align: center;
}
.hero .logo-wrap {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}
.hero .logo-wrap img {
  height: 70px;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 860px;
  margin: 0 auto 32px;
  letter-spacing: -0.01em;
}
.hero .lead {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}
.hero .nav-pills {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.nav-pill {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  transition: all .2s ease;
  background: transparent;
}
.nav-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ===== Тёмные секции ===== */
.section-dark {
  background: #0a0a0a;
  color: #fff;
  padding: 60px 24px;
}
.section-dark h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.section-dark p { color: var(--text-muted); font-size: 16px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

.two-col .photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}
.placeholder-img {
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  border: 1px solid #222;
  aspect-ratio: 4/3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.placeholder-img.light {
  background: linear-gradient(135deg, #e8e8e8 0%, #f2f2f2 100%);
  border: 1px solid #ddd;
  color: #999;
}
.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.02) 10px 11px);
}
.placeholder-img.light::before {
  background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,0.03) 10px 11px);
}

/* ===== 4-featured grid ===== */
.section-features {
  background: #0a0a0a;
  color: #fff;
  padding: 90px 24px;
}
.section-features .header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-features h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  padding: 8px 0;
}
.feature-card .dot {
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 0 12px rgba(43, 228, 242, 0.6);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== Светлая секция "Подходит для любого бизнеса" ===== */
.section-light {
  background: var(--bg-gray);
  color: var(--text-dark);
  padding: 90px 24px;
}
.section-light h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}
.section-light p { color: #444; font-size: 16px; line-height: 1.65; }
.section-light ul {
  list-style: none;
  margin-top: 18px;
}
.section-light ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: #333;
  font-size: 15px;
}
.section-light ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px; height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
}

/* ===== "Возможности" список ===== */
.section-capabilities {
  background: #0a0a0a;
  color: #fff;
  padding: 100px 24px;
  text-align: center;
}
.section-capabilities h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  margin-bottom: 40px;
}
.capabilities-list {
  max-width: 680px;
  margin: 0 auto;
}
.capabilities-list .item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 17px;
  color: var(--text-muted);
}
.capabilities-list .item:last-child { border-bottom: none; }

/* ===== Синий CTA блок ===== */
.cta-blue {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-violet) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}
.cta-blue .inner {
  max-width: 760px;
  margin: 0 auto;
}
.cta-blue .robot {
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
}
.cta-blue .robot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cta-blue h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.cta-blue p {
  font-size: 16px;
  opacity: 0.92;
  margin-bottom: 28px;
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: var(--accent-blue);
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover { background: #1f55e0; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 150%; }
}
/* ===== "Понравился проект?" ===== */
.section-ask {
  background: #0a0a0a;
  color: #fff;
  padding: 90px 24px;
  text-align: center;
}
.section-ask h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-ask p { color: var(--text-muted); margin-bottom: 28px; }

/* ===== Карточка "Кто я" ===== */
.about-card {
  background: var(--bg-gray);
  padding: 90px 24px;
}
.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 720px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
}
.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: #e5e5e5;
  margin: 0 auto;
  position: relative;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-card h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 18px;
  font-weight: 700;
}
.about-card p {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ===== "Запишитесь на вебинар" ===== */
.section-webinar {
  background: #fff;
  padding: 90px 24px;
}
.section-webinar .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .section-webinar .inner { grid-template-columns: 1fr; } }
.section-webinar h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 18px;
}
.section-webinar p { color: #444; margin-bottom: 24px; font-size: 15px; line-height: 1.6; }

/* ===== Форма ===== */
.form-section {
  background: #fff;
  padding: 70px 24px 100px;
}
.form-section .inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.form-section h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
}
.form-section .sub {
  color: #666;
  margin-bottom: 40px;
}
form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
form.contact-form label {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
  display: block;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s ease;
  background: #fff;
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}
form.contact-form textarea { min-height: 100px; resize: vertical; }
form.contact-form button {
  margin-top: 8px;
  align-self: center;
}
.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: #2e8b57;
  min-height: 20px;
}

/* ===== Footer ===== */
footer {
  background: #fff;
  border-top: 1px solid #eaeaea;
  padding: 30px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #666;
  line-height: 1.7;
}
.footer-inner a { color: #666; }
.footer-inner a:hover { color: var(--accent-blue); }
.footer-legal { flex: 1 1 200px; }
.footer-links {
  display: flex; gap: 32px; flex-wrap: wrap; flex: 2 1 400px;
  justify-content: center;
}
.footer-top { flex: 0 0 auto; }
.footer-top a { color: var(--accent-blue); }

/* ===== Подвал Tilda-style ===== */
.tilda-bar {
  background: #000;
  color: #888;
  text-align: center;
  font-size: 12px;
  padding: 14px;
  position: relative;
}
.tilda-bar .ai-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
}
@media (max-width: 640px) { .tilda-bar .ai-btn { position: static; transform: none; margin-top: 8px; display: inline-flex; } }

/* ===== Блог: карточки статей ===== */
.blog-hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: #fff;
}
.blog-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 24px;
}
.blog-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: #555;
  font-size: 19px;
  line-height: 1.7;
}
.blog-section {
  background: var(--bg-gray);
  padding: 70px 24px 100px;
}
.blog-section h2 {
  text-align: center;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 50px;
}
.blog-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.blog-card .cover {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #dde2ea, #c2cad6);
  position: relative;
  overflow: hidden;
}
.blog-card .cover::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}
.blog-card .cover-1 { background: linear-gradient(135deg, #1a2b4d, #3a5fa3); }
.blog-card .cover-2 { background: linear-gradient(135deg, #3a3020, #6b5540); }
.blog-card .cover-3 { background: linear-gradient(135deg, #6d3c8f, #c6538c); }
.blog-card .cover-4 { background: linear-gradient(135deg, #4a4f5c, #7d8594); }
.blog-card .cover-5 { background: linear-gradient(135deg, #8b6f47, #d4a574); }
.blog-card .body {
  padding: 22px 20px 26px;
}
.blog-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 16px;
  min-height: 44px;
}
.blog-card .date {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.02em;
}

/* ===== Страница ИИ-ассистентов ===== */
.ai-hero {
  background: linear-gradient(180deg, #2e6bff 0%, #4438c9 100%);
  color: #fff;
  padding: 0px 24px 16px;
  text-align: center;
  position: relative;
}
.ai-hero .back-arrow {
  position: absolute;
  left: 32px;
  top: 32px;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
}
.ai-hero .robot {
  width: 350px;
  height: 350px;
  margin: 0 auto 0px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.2));
}
.ai-hero .robot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ai-hero h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 1200;
  max-width: 1400px;
  margin: 0 auto 24px;
  line-height: 1.25;
}
.ai-hero p {
  max-width: 700px;
  margin: 0 auto 16px;
  font-size: 16px;
  opacity: 0.95;
  line-height: 1.6;
  white-space: nowrap;
}

.how-it-works {
  background: #fff;
  padding: 90px 24px;
}
.how-it-works .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 860px) { .how-it-works .inner { grid-template-columns: 1fr; gap: 40px; } }
.how-it-works h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  margin-bottom: 24px;
}
.how-it-works p {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.advantages {
  background: var(--bg-gray);
  padding: 90px 24px;
}
.advantages .header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}
.advantages h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
}
.advantages .header p { color: #555; }
.advantages-grid {
  max-width: 960px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 80px;
}
@media (max-width: 720px) { .advantages-grid { grid-template-columns: 1fr; } }
.advantage-item {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 20px;
  align-items: center;
}
.advantage-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.advantage-item p { font-size: 14px; color: #666; line-height: 1.5; }
.advantage-item .icon {
  width: 56px; height: 56px;
  background: #e5e5e5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #555;
}
.advantages .cta-wrap { text-align: center; }

/* ===== Страница Контакты ===== */
.contact-page {
  background: var(--bg-gray);
  min-height: 70vh;
  padding: 70px 24px 90px;
  position: relative;
}
.contact-page .back-arrow {
  position: absolute;
  left: 32px;
  top: 32px;
  color: #333;
  font-size: 28px;
  text-decoration: none;
}
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner h1 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 40px;
}
.contact-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #e5e5e5;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
}
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-inner .name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #6b5a3a;
}
.contact-inner .role {
  font-style: italic;
  color: #666;
  margin-bottom: 28px;
  font-size: 14px;
}
.contact-details {
  font-size: 15px;
  line-height: 2;
  color: #333;
}
.contact-details a { color: var(--accent-blue); }
.contact-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.contact-socials a {
  width: 36px; height: 36px;
  background: #555;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background .15s ease;
}
.contact-socials a:hover { background: var(--accent-blue); }
.contact-note {
  margin-top: 40px;
  color: #888;
  font-size: 13px;
  font-style: italic;
}

/* ===== Рекомендации (только для дев режима) ===== */
.recommendations {
  background: #fffbe8;
  border-top: 3px solid #f2c94c;
  padding: 40px 24px;
  font-size: 14px;
}
.recommendations .inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.recommendations h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #7a5a00;
}
.recommendations ul { padding-left: 22px; color: #4a3a00; }
.recommendations ul li { margin-bottom: 8px; line-height: 1.55; }
.recommendations .close {
  float: right;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #7a5a00;
}
.footer-white a {
  color: #333;
  text-decoration: none;
  transition: color .15s ease;
}

.footer-white a:hover {
  color: #2e6bff;
}

.icon-max {
  filter: brightness(0) invert(1);
}