/* --- CSS Variables (Design Tokens) --- */
:root {
  --pp-blue:    #1E488F;
  --pp-dark:    #1B1E67;
  --pp-yellow:  #F8C20A;
  --pp-pink:    #FF6692;
  --pp-cyan:    #46CAEB;
  --pp-green:   #36C76C;
  --pp-bg:      #F6FAFD;
  --pp-text:    #232323;
  --pp-white:   #FFFFFF;
  --pp-border:  rgba(204, 204, 204, 0.4);
}

/* --- Base --- */
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: var(--pp-text);
  background-color: var(--pp-bg);
  padding-top: 100px;
}

section { z-index: 1; position: relative; }

/* --- Typography --- */
.h-comfortaa {
  font-family: 'Comfortaa';
  font-weight: 600;
}

.h1-hero {
  font-family: 'Comfortaa';
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
}

.h2-section {
  font-family: 'Comfortaa';
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
}

.h3-card {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 30px;
}

.text-basic {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
}

.text-small {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
}

/* --- Buttons --- */
.btn-pp-primary {
  background-color: var(--pp-blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-pp-primary:hover { opacity: 0.88; color: #fff; }

.btn-pp-outline {
  background-color: var(--pp-bg);
  color: var(--pp-blue);
  border: 1px solid var(--pp-blue);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn-pp-outline:hover { background-color: #ffffff; color: var(--pp-blue); }

/* --- Navbar --- */
.pp-navbar {
  padding: 18px 0px;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.pp-navbar.scrolled {
  background-color: var(--pp-bg);
}

.navbar-brand { margin-right: 34px; }

.navbar-toggler { border: 0px; }
.navbar-toggler-icon { width: 2em; height: 2em; }
.navbar-toggler:focus,
.navbar-toggler:focus-visible {
  outline: 0;
  box-shadow: none;
}

.pp-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #000 !important;
  text-decoration: none;
  padding: 0 !important;
  white-space: nowrap;
  margin-right: 34px;
}
.pp-nav-link:hover { color: var(--pp-blue) !important; }

/* --- Section spacing --- */
.pp-section {
  padding: 52px 0px;
  position: relative;
}

/* --- Hero section --- */
.hero-section {
  padding: 52px 0px;
  position: relative;
  overflow: hidden;
}

.hero-bg-ellipse {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1408px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97, 185, 249, 0.4) 10%, rgba(97, 185, 249, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-section > * { position: relative; z-index: 1; }

/* --- Hero слайдер --- */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  /* высота = высота большого изображения + сколько маленькое торчит сверху */
  height: 360px;
  margin-bottom: 20px;
}

/* Базовые стили обоих изображений */
.hero-slide-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  border-radius: 16px;
  border: 2px solid var(--pp-border);
  object-fit: cover;
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    z-index   0s,
    box-shadow 0.6s ease,
    left      0.6s cubic-bezier(0.4, 0, 0.2, 1),
    width     0.6s cubic-bezier(0.4, 0, 0.2, 1),
    height    0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Большое (текущее) изображение — впереди */
.hero-slide-img.is-current {
  width: 100%;
  transform: translateX(-50%);
  z-index: 2;
  border: 10px solid;
  border-color: var(--pp-border);
}

/* Маленькое (предыдущее) изображение — сзади, торчит сверху */
.hero-slide-img.is-prev {
  width: 78%;
  /* центрируем горизонтально, сдвигаем вверх чтобы торчало над большим */
  transform: translateX(-50%);
  bottom: auto;
  top: 0;
  z-index: 1;
  border: 10px solid;
  border-color: var(--pp-border);
}

/* Все остальные слайды — спрятаны */
.hero-slide-img.is-hidden {
  width: 78%;
  transform: translateX(-50%);
  bottom: auto;
  top: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

/* --- Точки навигации --- */
.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8d6e8;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot.active {
  background: var(--pp-blue);
  transform: scale(1.35);
}

.hero-dot:focus-visible {
  outline: 2px solid var(--pp-blue);
  outline-offset: 2px;
}

/* --- Solution / 3 steps --- */

.step-card {
  background: var(--pp-white);
  border-radius: 16px;
  padding: 100px 20px 20px;
  position: relative;
  height: 100%;
}

.step-card.step-last { background: var(--pp-green); }

.step-badge {
  font-family: 'Lekton', sans-serif;
  position: absolute;
  top:    -2px;
  left:   -2px;
  height: 72px;
  border-radius: 16px 0 16px 0;
  border: 10px solid var(--pp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 28px;
  color: #000;
  padding: 0px 20px;
}

.step-arrow {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ccc;
}

/* --- Features section --- */

.feature-row {
  padding: 24px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  border-left: 3px solid transparent;
  transition: background-color 0.2s, border-left-color 0.2s;
}
.feature-row:last-child { border-bottom: none; }
.feature-row:hover { background-color: rgba(30, 72, 143, 0.04); }

/* Активный пункт */
.feature-row.open {
  border-left-color: var(--pp-blue);
}

.feature-row .feature-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  user-select: none;
}

/* Иконка + / − */
.feature-icon {
  font-size: 24px;
  line-height: 30px;
  color: var(--pp-blue);
  transition: transform 0.25s ease;
  font-weight: 400;
  width: 24px;
  text-align: center;
}
.feature-row.open .feature-icon {
  transform: rotate(45deg); /* + → × (визуально воспринимается как −) */
}

/* Тело пункта — скрыто по умолчанию */
.feature-body {
  display: none;
  animation: featureBodyIn 0.25s ease;
}
.feature-row.open .feature-body {
  display: block;
}

@keyframes featureBodyIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Правый блок с картинкой */
.features-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/features-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  padding: 52px;
  aspect-ratio: 1 / 1;
}

.features-img-wrap img {
  border-radius: 16px;
  border: 10px solid;
  border-color: var(--pp-border);
  transition: opacity 0.3s ease;
  width: 100%;
}

.features-img-wrap img.fading {
  opacity: 0;
}

/* --- Integrations --- */

.integration-icon {
  padding: 20px;
  border-radius: 16px;
  border: 10px solid;
  border-color: var(--pp-border);
  background-color: var(--pp-white);
  flex-shrink: 0;
}

.integration-icon img {
  width:  50px;
  height: 50px;
  overflow: hidden;
  object-fit: cover;
}

/* --- For whom --- */

.kaleidoscope-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.kaleidoscope-row {
  display: flex;
  gap: 26px;
  justify-content: center;
}

.kaleidoscope-img {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.forwhom-row {
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
}
.forwhom-row:first-child { padding-top: 0; }
.forwhom-row:last-child { padding-bottom: 0; border-bottom: none; }

/* --- Pricing --- */

.price-card {
  background: var(--pp-white);
  border-radius: 16px;
  padding: 30px;
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.price-card.price-featured {
  border: 2px solid var(--pp-dark);
}

.price-card.price-enterprise {
  background: radial-gradient(circle at 25% 50%, rgba(97, 185, 249, 0.2) 10%, rgba(97, 185, 249, 0) 90%), var(--pp-dark);
  color: #fff;
  overflow: hidden;
}

.price-card.price-enterprise .price-amount,
.price-card.price-enterprise .price-name,
.price-card.price-enterprise .price-desc,
.price-card.price-enterprise .price-features { color: #fff; }

.price-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pp-green);
  color: var(--pp-white);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-name {
  font-family: 'Montserrat-600', sans-serif;
  font-size: 24px;
  line-height: 30px;
  color: var(--pp-text);
}

.price-amount {
  font-family: 'Montserrat', sans-serif;
  color: var(--pp-text);
}

.price-amount .amount-big {
  font-family: 'Lekton', sans-serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.price-amount .amount-period {
  font-size: 18px;
  font-weight: 400;
}

.price-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-desc {
  font-size: 14px;
  color: var(--pp-text);
  min-height: 88px;
}

.price-btn {
  background-color: var(--pp-blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 18px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: opacity 0.2s;
}
.price-btn:hover { opacity: 0.88; color: #fff; }

.price-enterprise .price-btn {
  background-color: var(--pp-white);
  color: var(--pp-dark);
}

.price-features {
  margin-bottom: auto;
  font-size: 14px;
  color: var(--pp-text);
  line-height: 2;
  list-style: none;
  padding: 0;
}

.price-features li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 20px;
  margin-bottom: 10px;
}

.price-features li::before {
  content: '✓';
  color: var(--pp-green);
  font-weight: 600;
  flex-shrink: 0;
}

.price-enterprise .price-features li::before { color: var(--pp-cyan); }

/* --- FAQ --- */

.faq-item {
  background: var(--pp-white);
  border-radius: 16px;
  padding: 0px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

.faq-question {
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin:  0px;
  padding: 24px;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--pp-blue);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  font-size: 18px;
  padding: 0px 24px;
  color: var(--pp-text);
  display: none;
}

.faq-item.open .faq-answer { display: block; }

/* --- CTA block --- */
.cta-section {
  padding: 52px 0px;
}

.cta-card {
  background: var(--pp-white);
  border: 10px solid;
  border-color: var(--pp-border);
  border-radius: 16px;
  padding: 52px 24px;
  text-align: center;
}

/* --- Footer --- */
.pp-footer {
  background: radial-gradient(circle at 15% 50%, rgba(97, 185, 249, 0.2) 10%, rgba(97, 185, 249, 0) 90%), var(--pp-dark);
  color: #fff;
  padding: 52px 0px 24px 0px;
  position: relative;
  overflow: hidden;
}

.pp-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.pp-footer a:hover { color: #fff; }

.footer-col-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-divider {
  border-color: rgba(255,255,255,0.5);
  margin: 32px 0 0;
}

.footer-copy {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  padding-top: 16px;
}

.footer-logo-text {
  font-family: 'Comfortaa', cursive;
  font-weight: 600;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-tagline {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-top: 12px;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 18px;
}

.custom-tooltip {
  --bs-tooltip-bg: var(--pp-green);
  --bs-tooltip-color: var(--pp-text);
  font-weight: bold;
}

/* --- Blog --- */
.page-title-section {
    margin: 52px 0px 24px 0px;
}


.btn-pp-tags {
  background-color: var(--pp-white);
  color: var(--pp-blue);
  border: 1px solid var(--pp-blue);
  border-radius: 12px;
  padding: 8px 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
  margin: 4px 0px;
}
.btn-pp-tags:hover { background-color: var(--pp-blue); color: var(--pp-white); }
.btn-pp-tags.active { background-color: var(--pp-blue); color: var(--pp-white); }

.blog-item-card {
    padding: 24px 0px;
}

.blog-item-card img {
    width: 100%;
    border-radius: 12px;
    height: 240px;
    object-fit: cover;
}

.blog-item-category {
   border-radius: 12px;
   padding: 4px 10px;
   background-color: var(--pp-cyan);
   color: var(--pp-white);
   display: inline-block;
   margin: 12px 0px;
   font-size: 14px;
}

.blog-item-date {
   margin: 0px 0px;
   font-size: 14px;
}

h1.blog-item-title {
    font-family: 'Comfortaa';
    font-weight: 600;
    font-size: 40px;
    margin: 12px 0px;
}

h2.blog-item-title {
    font-size: 22px;
    font-weight: 600;
    margin: 12px 0px;
}

.blog-item-title a {
    text-decoration: none;
    color: #232323;
}

.blog-item-desctiption {
    margin-bottom: 8px;
}

.pagination-section {
    margin-top: 24px;
}

.blog-item-section {
    margin-top: 12px;
}

.blog-item-section img {
    width: 100%;
    border-radius: 12px;
    margin: 12px 0px 24px 0px;
}

.cta-block {
  background: radial-gradient(circle at 25% 50%, rgba(97, 185, 249, 0.2) 10%, rgba(97, 185, 249, 0) 90%), var(--pp-dark);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-top: 12px;
}

.cta-block h3 {
    font-size: 24px;
}

.tag-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
}

.tag-block h3 {
    font-size: 24px;
}

/* --- Responsive --- */
@media (max-width: 1399px) {
  .navbar-brand { margin-right: 22px; }
  .pp-nav-link { margin-right: 22px; }
  .kaleidoscope-img { width: 130px; height: 130px; }
}


@media (max-width: 1199px) {
  .h1-hero { font-size: 48px; }
  .h2-section { font-size: 32px; }
  .pp-section { padding: 48px 0px; }
  .hero-section { padding: 48px 0px; }
  .hero-img-back { width: 380px; }
  .hero-img-front { width: 300px; }
  .hero-bg-ellipse { height: 1199px; }
  .pp-nav-link { font-size: 22px; margin: 10px 0px; display: block; }
}

@media (max-width: 991px) {
  .h1-hero { font-size: 38px; }
  .h2-section { font-size: 28px; }
  .pp-section { padding: 40px 0px; }
  .hero-section { padding: 40px 0px; }
  .hero-img-back { position: relative; width: 100%; top: auto; left: auto; margin-bottom: 12px; }
  .hero-img-front { width: 100%; margin-left: 0; }
  .pp-footer { padding: 40px 0px; }
  .step-card { padding: 80px 16px 16px; }
  .hero-bg-ellipse { height: 991px; }
}

@media (max-width: 767px) {
  .h1-hero { font-size: 30px; }
  .h2-section { font-size: 24px; }
  .integration-icon { padding: 10px; }
  .hero-bg-ellipse { height: 767px; }
}

@media (max-width: 575px) {
  .kaleidoscope-img { width: 100px; height: 100px; }
  .hero-bg-ellipse { height: 575px; top: 40px; }
}

@media (max-width: 391px) {
  .kaleidoscope-img { width: 100px; height: 100px; }
  .hero-bg-ellipse { height: 391px; top: 40px; }
}