:root {
  --purple-dark: #1e1147;
  --purple-base: #4c1d95;
  --purple-mid: #6d28d9;
  --purple-light: #8b5cf6;
  --purple-accent: #a78bfa;
  --indigo: #6366f1;
  --magenta: #ec4899;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.85);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--white);
  background: linear-gradient(160deg, var(--purple-dark) 0%, var(--purple-base) 45%, var(--purple-mid) 100%) no-repeat center center fixed;
  background-size: cover;
  -webkit-background-size: cover;
}

/* ===== ШАПКА ===== */
#main-nav {
  background: linear-gradient(180deg, rgba(30, 17, 71, 0.98) 0%, rgba(30, 17, 71, 0.94) 100%);
  padding: 0.6rem 0;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#main-nav.scrolled {
  background: rgba(30, 17, 71, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.brand-logo {
  height: 48px;
  width: auto;
}

#main-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  margin-left: 1rem;
  position: relative;
  transition: color 0.2s ease;
}

#main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--purple-accent);
  transition: width 0.3s ease;
}

#main-nav .nav-link:hover::after {
  width: 100%;
}

#main-nav .nav-link:hover {
  color: var(--purple-accent);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

#main-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding-top: 120px;
  background:
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(109, 40, 217, 0.45) 0%, transparent 50%),
    linear-gradient(160deg, var(--purple-dark) 0%, var(--purple-base) 55%, var(--purple-mid) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero-slogan {
  color: var(--purple-accent);
  font-weight: 600;
}

.hero-text {
  max-width: 720px;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ===== Декор hero ===== */
.hero-shapes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.shape-wave-1 {
  fill: rgba(167, 139, 250, 0.16);
}

.shape-wave-2 {
  fill: rgba(236, 72, 153, 0.1);
}

.shape-path {
  fill: none;
  stroke-linecap: round;
}

.shape-path-1 {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2;
  stroke-dasharray: 6 12;
}

.shape-path-2 {
  stroke: rgba(196, 181, 253, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 2 9;
}

.shape-path-3 {
  stroke: rgba(167, 139, 250, 0.4);
  stroke-width: 2;
  stroke-dasharray: 1 11;
}

.shape-path-4 {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 4 10;
}

.shape-pulse circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
  transform-origin: center;
  transform-box: fill-box;
  will-change: transform, opacity;
  animation: pulse 6s ease-out infinite;
}

.shape-pulse circle:nth-child(2) {
  animation-delay: 0.8s;
}

.shape-pulse circle:nth-child(3) {
  animation-delay: 1.6s;
}

.shape-pulse-2 circle {
  animation-duration: 6s;
}

.shape-dot {
  fill: rgba(255, 255, 255, 0.4);
  will-change: transform;
  animation: floaty 7s ease-in-out infinite;
}

.shape-dot:nth-child(odd) {
  animation-delay: 1.5s;
}

@keyframes pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.7;
  }
  70% {
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== Секции общее ===== */
.section {
  padding: 5rem 0;
}

.section-title {
  position: relative;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding-bottom: 0.6rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--purple-accent));
}

.section-title {
  display: block;
}

.section-text {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.subtitle {
  font-weight: 600;
  color: var(--white);
}

/* ===== Иконки ===== */
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-mid));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  margin: 0 auto 1rem;
  flex-shrink: 0;
}

.icon-svg {
  width: 38px;
  height: 38px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Карточки О проекте ===== */
.about-card,
.section-tile,
.rubric-card,
.audience-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover,
.section-tile:hover,
.rubric-card:hover,
.audience-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.about-card h3 {
  color: var(--white);
  font-weight: 600;
}

.about-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.about-card {
  text-align: center;
}

/* ===== Плитки разделов ===== */
.section-tile {
  text-align: center;
  padding: 2rem 1.25rem;
}

.section-tile h4 {
  color: var(--purple-accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.section-tile p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.section-tile .icon-badge {
  width: 72px;
  height: 72px;
  margin-bottom: 1.1rem;
}

.section-tile .icon-svg {
  width: 32px;
  height: 32px;
}

/* ===== Персона ===== */
.persona-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  margin-bottom: 0;
}

.persona-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--indigo), var(--magenta));
}

.rubric-card h4 {
  color: var(--purple-accent);
  font-weight: 600;
}

.rubric-slogan {
  font-style: italic;
  font-weight: 600;
  color: var(--white);
  border-left: 3px solid var(--purple-accent);
  padding-left: 0.75rem;
  margin: 0.75rem 0 0.6rem;
  line-height: 1.45;
}

.rubric-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== Для кого ===== */
.audience-card h3 {
  color: var(--white);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

.audience-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.audience-card li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.audience-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-accent));
}

/* ===== Тарифы ===== */
.tariff-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tariff-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.tariff-featured {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.35) 0%, rgba(109, 40, 217, 0.45) 100%);
  border: 2px solid var(--purple-accent);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.35);
}

.tariff-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.tariff-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 2.4em;
}

.tariff-price {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0.75rem 0 0.25rem;
  line-height: 1.1;
}

.tariff-currency {
  font-size: 1.8rem;
}

.tariff-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.tariff-count {
  font-weight: 600;
  color: var(--white);
  margin: 1rem 0 0.5rem;
}

.tariff-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.tariff-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.tariff-list li span {
  font-weight: 700;
  color: var(--white);
  background: rgba(139, 92, 246, 0.35);
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  min-width: 34px;
  text-align: center;
}

.tariff-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--purple-light), var(--purple-accent));
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.tariff-btn {
  background: linear-gradient(90deg, var(--purple-light), var(--purple-accent));
  color: var(--white);
  font-weight: 600;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tariff-btn:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tariff-footer {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 1.75rem;
}

.tariff-footer p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-mini-buttons .btn {
  border-radius: 999px;
  margin: 0.25rem 0.35rem;
}

/* ===== Как заказать ===== */
.order-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  height: 100%;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.order-card:hover {
  transform: translateY(-6px);
  background: rgba(139, 92, 246, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  color: var(--white);
}

.order-icon {
  font-size: 2.6rem;
}

.order-logo {
  height: 2.8rem;
  width: auto;
  display: block;
}

.vk-logo {
  height: 2.6rem;
}

.order-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.order-action {
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.order-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Подвал ===== */
.footer {
  background: linear-gradient(180deg, rgba(30, 17, 71, 0.4) 0%, rgba(20, 10, 50, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 1.5rem;
}

.footer-text {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-logo-img {
  max-height: 64px;
  max-width: 100%;
}

.putp-logo {
  max-height: 80px;
  max-width: 180px;
}

.fasie-logo {
  margin: 0 auto;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ===== Адаптивность ===== */
@media (max-width: 991.98px) {
  #main-nav .nav-link {
    margin-left: 0;
    padding: 0.5rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding-top: 110px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .persona-title {
    font-size: 1.7rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .footer-logo {
    text-align: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shape-path,
  .shape-pulse circle,
  .shape-dot {
    animation: none;
  }
}