/* ============================================================
   Profit Digital — общие стили сайта
   Подключается на внутренних страницах (блог и далее).
   Главная и /services пока держат свои стили инлайн.
   ============================================================ */

:root {
  --purple-deep: #1a0b3d;
  --purple-mid: #4318c9;
  --purple-bright: #6c2bd9;
  --purple-light: #a06cf5;
  --purple-pink: #c43dd1;
  --green: #b6ff3c;
  --green-dark: #9eea1c;
  --bg-pill: rgba(255,255,255,0.12);
  --text: #ffffff;
  --text-soft: rgba(255,255,255,0.78);
  --text-mute: rgba(255,255,255,0.55);
  --dark: #0f0926;
}

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

html, body {
  background: #0a0418;
  color: var(--text);
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============ ФОН СТРАНИЦЫ ============ */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #6c2bd9 0%, #4318c9 35%, #2a0e7a 70%, #1a0b3d 100%);
}
.page-bg::before,
.page-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.page-bg::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #c43dd1 0%, transparent 60%);
  top: -150px; right: -100px;
  animation: floatBlob 22s ease-in-out infinite;
}
.page-bg::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a06cf5 0%, transparent 60%);
  top: 20%; left: -150px;
  animation: floatBlob 18s ease-in-out infinite reverse;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.15); }
}

/* ============ НАВИГАЦИЯ ============ */
.nav {
  position: fixed;
  top: 24px; left: 32px; right: 32px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px 14px 28px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  box-shadow: 0 10px 40px rgba(15, 9, 38, 0.25);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  text-decoration: none;
}
.nav__logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.nav__menu { display: flex; gap: 4px; align-items: center; }
.nav__menu a {
  color: var(--dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  transition: background 0.2s;
}
.nav__menu a:hover { background: rgba(15,9,38,0.06); }
.nav__menu a.active { background: var(--dark); color: white; }
.nav__cta {
  background: var(--purple-bright);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(108, 43, 217, 0.4);
}
.nav__cta:hover { background: var(--purple-mid); transform: translateY(-1px); }

/* ============ ОБЩИЕ ЭЛЕМЕНТЫ ============ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--bg-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  margin-bottom: 32px;
}
.pill-star { color: var(--green); font-size: 13px; }

.hero {
  min-height: 100vh;
  padding: 100px 48px 60px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 1100px;
  margin: 0 auto 28px;
}
.hero__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-weight: 500;
  font-size: 0.42em;
  letter-spacing: -0.02em;
}
.hero__amp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em; height: 1em;
  background: var(--green);
  color: var(--dark);
  border-radius: 0.18em;
  font-weight: 800;
  box-shadow: 0 0 50px rgba(182, 255, 60, 0.55), 0 0 100px rgba(182, 255, 60, 0.25);
  flex-shrink: 0;
}
.hero__lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 760px;
  margin: 0 auto;
}

.section {
  padding: 60px 48px 120px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* ============ ФУТЕР ============ */
.footer {
  padding: 90px 48px 60px;
  text-align: center;
}
.footer__title {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
}
.footer__cta {
  background: var(--purple-bright);
  color: white; border: none;
  padding: 22px 48px; border-radius: 100px;
  font-family: inherit; font-weight: 600; font-size: 17px;
  text-decoration: none; display: inline-block;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 8px 32px rgba(108, 43, 217, 0.5);
}
.footer__cta:hover { background: var(--purple-mid); transform: translateY(-2px); }
.footer__links {
  margin-top: 26px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--text-mute);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--green); }
.footer__copy {
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-mute);
}

/* ============ АДАПТИВ ============ */
@media (max-width: 820px) {
  .nav { left: 12px; right: 12px; padding: 10px 10px 10px 22px; }
  .nav__menu { display: none; }
  .nav__cta { padding: 12px 20px; font-size: 14px; }
  .hero { padding: 120px 20px 60px; }
  .section { padding: 40px 20px 80px; }
  .footer { padding: 60px 20px 50px; }
}

/* ============================================================
   БЛОГ
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 32px 30px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s, border-color 0.28s;
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 26px 60px rgba(0,0,0,0.5);
}
.post-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.60);
}
.post-card__tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent, var(--green));
  color: #0b0620;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.post-card__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.post-card__text {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}
.post-card__more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent, var(--green));
}
.post--money {
  --accent: #d4ff7a;
  background: radial-gradient(ellipse at 88% 8%, rgba(160,230,60,0.30) 0%, transparent 58%),
              linear-gradient(140deg, #1e4114 0%, #12290d 58%, #091806 100%);
}
.post--choose {
  --accent: #c9a6ff;
  background: radial-gradient(ellipse at 88% 8%, rgba(168,85,247,0.38) 0%, transparent 58%),
              linear-gradient(140deg, #301366 0%, #1c0b3f 58%, #110623 100%);
}
.post--metrics {
  --accent: #93c5fd;
  background: radial-gradient(ellipse at 88% 8%, rgba(59,130,246,0.38) 0%, transparent 58%),
              linear-gradient(140deg, #112860 0%, #0b193b 58%, #050f22 100%);
}
.post--bot {
  --accent: #5eead4;
  background: radial-gradient(ellipse at 88% 8%, rgba(20,184,166,0.36) 0%, transparent 58%),
              linear-gradient(140deg, #0a413f 0%, #062a28 58%, #031918 100%);
}

/* ---- Страница статьи ---- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 24px 40px;
}
.article__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 22px;
}
.article__title {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.article__lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-soft);
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.article__body { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.86); }
.article__body h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 46px 0 18px;
}
.article__body h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 32px 0 12px;
}
.article__body p { margin-bottom: 18px; }
.article__body ul, .article__body ol { margin: 0 0 20px 0; padding-left: 0; list-style: none; }
.article__body li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.article__body ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.article__body ol { counter-reset: n; }
.article__body ol li { counter-increment: n; }
.article__body ol li::before {
  content: counter(n);
  position: absolute;
  left: 0; top: 0;
  font-weight: 700;
  color: var(--green);
  font-size: 15px;
}
.article__body strong { color: #fff; font-weight: 600; }
.article__body a { color: var(--green); }
.article__note {
  margin: 34px 0;
  padding: 26px 28px;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 16px;
  line-height: 1.6;
}
.article__table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 15px;
}
.article__table th, .article__table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}
.article__table th {
  font-weight: 600;
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article__cta {
  margin: 50px 0 20px;
  padding: 36px 34px;
  border-radius: 28px;
  background: radial-gradient(ellipse at 85% 10%, rgba(108,43,217,0.45) 0%, transparent 60%),
              linear-gradient(140deg, #2a1063 0%, #180a38 100%);
  border: 1px solid rgba(255,255,255,0.16);
  text-align: center;
}
.article__cta h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.article__cta p { color: var(--text-soft); margin-bottom: 22px; }
.article__back {
  display: inline-block;
  margin-top: 10px;
  color: var(--text-mute);
  text-decoration: none;
  font-size: 15px;
}
.article__back:hover { color: var(--green); }

@media (max-width: 820px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article { padding: 120px 20px 30px; }
  .article__table { font-size: 14px; }
  .article__table th, .article__table td { padding: 10px 8px; }
}

/* ---- Обложки статей ---- */
.post-card { padding: 0; overflow: hidden; }
.post-card__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 30px 28px;
  flex: 1;
}
.article__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  margin-bottom: 34px;
}

/* доп. темы карточек блога */
.post--clients {
  --accent: #fda4af;
  background: radial-gradient(ellipse at 88% 8%, rgba(244,63,94,0.34) 0%, transparent 58%),
              linear-gradient(140deg, #4a1526 0%, #2e0c17 58%, #1a060d 100%);
}
.post--start {
  --accent: #c4b5fd;
  background: radial-gradient(ellipse at 88% 8%, rgba(124,58,237,0.42) 0%, transparent 58%),
              linear-gradient(140deg, #271259 0%, #170b34 58%, #0c051d 100%);
}
.post--instagram {
  --accent: #f5b8ff;
  background: radial-gradient(ellipse at 88% 8%, rgba(217,70,239,0.36) 0%, transparent 58%),
              linear-gradient(140deg, #44104e 0%, #290930 58%, #17041b 100%);
}
.post--market {
  --accent: #7dd3fc;
  background: radial-gradient(ellipse at 88% 8%, rgba(14,165,233,0.38) 0%, transparent 58%),
              linear-gradient(140deg, #0b3358 0%, #072036 58%, #04141f 100%);
}
.post--ai {
  --accent: #5eead4;
  background: radial-gradient(ellipse at 88% 8%, rgba(20,184,166,0.36) 0%, transparent 58%),
              linear-gradient(140deg, #0a413f 0%, #062a28 58%, #031918 100%);
}
