/* === ОСНОВНЫЕ СТИЛИ === */
:root {
  /* Светлая тема + акценты: насыщённый жёлтый и зелёный */
  --bg-dark: #ffffff;
  --bg-darker: #f5f7fb;
  --accent-blue: #00c853; /* Яркий зелёный */
  --accent-cyan: #ffc400; /* Насыщённый жёлтый */
  --text-light: #1f2937;
  --text-muted: #6b7280;
  --border-color: rgba(0, 0, 0, 0.08);
  --card-bg: #ffffff;
  --error-color: #e11d48;
  --error-bg: rgba(225, 29, 72, 0.08);
}

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

body {
  font-family: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* === ОБЩИЕ СТИЛИ === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  overflow: hidden;
}

h1,
h2,
h3 {
  font-weight: 600;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 60px;
}

p {
  color: var(--text-muted);
}

.cta-btn {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  color: #0f172a;
  border: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 170, 255, 0.3);
}

/*

.animated {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated.is-visible {
  opacity: 1;
  transform: translateY(0);
}

*/

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 22px;
  color: var(--accent-cyan);
}

.logo-text {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
}

.desktop-nav a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s;
}

.desktop-nav a:hover {
  color: var(--accent-cyan);
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-actions .demo-btn {
  background: none;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.header-actions .demo-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

.header-actions .login-btn {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.header-actions .login-btn:hover {
  background: var(--accent-cyan);
}

/* === USER MENU === */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cabinet-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  color: #0f172a;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.cabinet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 170, 255, 0.3);
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 77, 77, 0.1);
  color: #ff4d4d;
  border: 1px solid rgba(255, 77, 77, 0.2);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(255, 77, 77, 0.2);
  transform: translateY(-1px);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: var(--accent-cyan);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.mobile-menu nav a:hover {
  color: var(--accent-cyan);
}

.mobile-menu nav a:last-child {
  border-bottom: none;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  /* Светлая мягкая заливка с акцентами */
  background: radial-gradient(circle, rgba(10, 132, 255, 0.06) 0%, var(--bg-dark) 70%);
  position: relative;
  padding-top: 70px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(10,132,255,0.10)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  text-shadow: 0 6px 16px rgba(10, 132, 255, 0.15);
}

.hero p {
  max-width: 600px;
  margin: 30px auto;
  font-size: 1.2rem;
}

/* === COMPARISON SECTION === */
.comparison-section {
  background: var(--bg-darker);
}

.comparison-table {
  width: 100%;
  margin-top: 40px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.comparison-table th,
.comparison-table td {
  padding: 20px;
  text-align: center;
}

.comparison-table thead th {
  font-size: 1.2rem;
}

.comparison-table tbody td {
  background: var(--card-bg);
  border-bottom: 3px solid var(--bg-darker);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: bold;
  border-radius: 8px 0 0 8px;
}

.comparison-table tbody td:last-child {
  border-radius: 0 8px 8px 0;
}

.comparison-table .icon-yes {
  color: #00ff8c;
}

.comparison-table .icon-no {
  color: #ff4d4d;
}

.comparison-table .icon-partial {
  color: #ffc700;
}

/* === TOWERS === */
#towers {
  background: var(--bg-darker);
}

.traffic-flow-container {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-top: 40px;
}

.traffic-level {
  text-align: center;
  margin-bottom: 25px;
}

.traffic-level p {
  font-weight: 500;
  color: var(--text-muted);
  margin: 10px 0 0 0;
}

.traffic-level .threats {
  color: #ff4d4d;
}

.traffic-level .clean {
  color: #00ff8c;
}

.towers-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
}

.filter-tower {
  text-align: center;
}

.filter-tower i {
  color: var(--accent-cyan);
}

.filter-tower span {
  display: block;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* === SLIDER === */
.what-bot-sees {
  background: var(--bg-dark);
}

.slider-container {
  overflow: hidden;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  display: block;
}

/* === ANALYTICS === */
.analytics {
  background: var(--bg-dark);
}

.analytics-block {
  display: flex;
  align-items: center;
  gap: 40px;
}

.analytics-block .text-content {
  flex: 1;
}

.analytics-block .screenshot {
  flex: 1;
}

.analytics-block .screenshot img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.analytics-block ul {
  list-style: none;
  padding-left: 0;
  columns: 2;
}

.analytics-block li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
}

.analytics-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* === DEMO === */
#demo {
  background: var(--bg-darker);
}

.live-monitor-demo {
  display: flex;
  gap: 20px;
  font-family: monospace;
  background: var(--bg-dark);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  min-height: 200px;
  overflow: hidden;
}

.lane {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.lane h3 {
  margin: 0 0 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.event-card {
  background: var(--card-bg);
  border-left: 4px solid;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-card .icon {
  font-size: 1.5em;
}

.event-card .details {
  font-size: 0.9em;
}

/* === AUTOMATION === */
.automation {
  background: var(--bg-dark);
}

.auto-feature {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
}

.auto-feature i {
  color: var(--accent-cyan);
  margin-right: 30px;
}

.auto-feature h3 {
  margin: 0 0 10px 0;
}

/* === INSTALL BLOCK === */
.install-block {
  text-align: center;
  background: var(--bg-darker);
  padding: 50px;
  border-radius: 12px;
}

.install-block h2 {
  margin-bottom: 20px;
}

.install-block p {
  max-width: 600px;
  margin: 0 auto 40px auto;
}

/* === INSTALLATION === */
#installation {
  background: var(--bg-dark);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  margin-top: 40px;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  opacity: 0.3;
  z-index: 1;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #0f172a;
  border: 4px solid var(--bg-darker);
}

.step-card i {
  color: var(--accent-cyan);
  margin-top: 30px;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* === PRICING === */
#pricing {
  background: var(--bg-darker);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 40px rgba(0, 255, 242, 0.1);
}

.price-card.featured {
  border-color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(0, 255, 242, 0.1), rgba(0, 170, 255, 0.1));
  transform: scale(1.05);
}

.price-card.demo-card {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 140, 0, 0.1));
  border-color: #ff8c00;
}

.special-offer {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 15px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.currency {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.discount-prices {
  margin: 20px 0;
  font-size: 0.9rem;
}

.discount-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: rgba(0, 255, 242, 0.05);
  border-radius: 6px;
}

.discount-period {
  color: var(--text-muted);
}

.discount-price {
  color: var(--accent-cyan);
  font-weight: 600;
}

.discount-save {
  color: #00ff8c;
  font-size: 0.8rem;
}

.price-card ul {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-light);
}

.price-card li i {
  color: var(--accent-cyan);
  width: 16px;
  height: 16px;
}

.buy-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  color: #0f172a;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 170, 255, 0.3);
}

.trial-info {
  text-align: center;
  margin-top: 50px;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === ABOUT === */
#about {
  background-color: var(--bg-dark);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-photo {
  flex-shrink: 0;
}

.about-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid var(--border-color);
  object-fit: cover;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.about-text .subtitle {
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  display: block;
}

.about-text p {
  max-width: 600px;
  line-height: 1.7;
}

/* === FOOTER === */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
}

footer a {
  color: var(--accent-cyan);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-blue);
}

/* === MODAL STYLES === */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--bg-darker);
  margin: 5% auto;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: var(--text-light);
  font-size: 1.5rem;
}

.close {
  color: var(--text-muted);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--accent-cyan);
}

.modal-body {
  padding: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-light);
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 242, 0.1);
}

/* === ERROR STYLES === */
.error-message {
  display: none;
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 5px;
  padding: 5px 10px;
  background: var(--error-bg);
  border-radius: 4px;
  border-left: 3px solid var(--error-color);
}

.form-group input.error {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.custom-checkbox.checkbox-error .checkbox-custom {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

/* === CHECKBOX STYLES === */
.custom-checkbox {
  position: relative;
  margin-bottom: 15px;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
  padding-left: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-dark);
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-block;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-label .checkbox-custom {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-color: var(--accent-cyan);
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-label .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-dark);
  font-weight: bold;
  font-size: 12px;
  line-height: 1;
}

.custom-checkbox input[type="checkbox"]:focus + .checkbox-label .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(0, 255, 242, 0.2);
}

.checkbox-label a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Ubuntu", sans-serif;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 170, 255, 0.3);
}

.form-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
}

.form-switch a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.form-switch a:hover {
  text-decoration: underline;
}

/* === NOTIFICATION BANNER === */
.notification-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  padding: 15px 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.notification-banner.success {
  background: rgba(0, 255, 140, 0.1);
  border-bottom-color: #00ff8c;
}

.notification-banner.error {
  background: rgba(255, 77, 77, 0.1);
  border-bottom-color: #ff4d4d;
}

.notification-banner.warning {
  background: rgba(255, 199, 0, 0.1);
  border-bottom-color: #ffc700;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-light);
}

.notification-content i {
  font-size: 1.2rem;
}

.notification-banner.success .notification-content i {
  color: #00ff8c;
}

.notification-banner.error .notification-content i {
  color: #ff4d4d;
}

.notification-banner.warning .notification-content i {
  color: #ffc700;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 15px;
  transition: color 0.3s;
}

.notification-close:hover {
  color: var(--text-light);
}

/* Сдвигаем контент вниз когда показано уведомление */
body:has(.notification-banner) header {
  top: 60px;
}

body:has(.notification-banner) .hero {
  padding-top: 60px;
}

/* === MOBILE RESPONSIVE === */

/* Tablet styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .analytics-block {
    flex-direction: column;
    gap: 30px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Header mobile */
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-actions {
    gap: 10px;
  }

  .cabinet-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .logout-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* Sections mobile */
  section {
    padding: 60px 0;
  }

  h2 {
    margin-bottom: 40px;
  }

  /* Comparison table mobile */
  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 15px 10px;
  }

  /* Towers mobile */
  .towers-filter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Analytics mobile */
  .analytics-block ul {
    columns: 1;
  }

  /* Demo mobile */
  .live-monitor-demo {
    flex-direction: column;
    gap: 15px;
  }

  /* Auto feature mobile */
  .auto-feature {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .auto-feature i {
    margin-right: 0;
  }

  /* Steps mobile */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Pricing mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .price-card.featured {
    transform: none;
  }

  .discount-option {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  /* Modal mobile */
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .modal-body {
    padding: 20px;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .header-actions .demo-btn,
  .header-actions .login-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .cabinet-btn span {
    display: none;
  }

  .cabinet-btn {
    padding: 8px 12px;
  }
}
#payment-methods {
  padding: 60px 0;
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
}

.payment-heading {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 1rem;
}

.payment-logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.payment-logo {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.payment-logo:hover {
  opacity: 1;
}

.logo-yookassa {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
}

.logo-yookassa .yoo-y {
  color: var(--accent-cyan);
}

.logo-mir svg {
  height: 28px;
  width: auto;
}

/* === CLICKFRAUD SECTION === */
.clickfraud-section {
  padding: 60px 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.clickfraud-content {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--card-bg);
  padding: 30px 40px;
  border-radius: 12px;
}
.clickfraud-icon {
  flex-shrink: 0;
}
.clickfraud-icon i {
  width: 48px;
  height: 48px;
  color: var(--accent-cyan);
}
.clickfraud-text h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: var(--text-light);
}
.clickfraud-text p {
  margin: 0;
  color: var(--text-muted);
}
.clickfraud-text strong {
    color: var(--accent-cyan);
    font-weight: 600;
}
.clickfraud-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: var(--text-muted);
}
.toggle-switch {
    width: 60px;
    height: 30px;
    background: var(--bg-dark);
    border-radius: 15px;
    padding: 4px;
    cursor: pointer;
    position: relative;
}
.toggle-pill {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.clickfraud-toggle.active .toggle-pill {
    transform: translateX(30px);
}

/* === CLICKFRAUD SECTION (дополненные стили) === */
.clickfraud-section {
  padding: 60px 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.clickfraud-content-wrapper {
  background: var(--card-bg);
  padding: 30px 40px;
  border-radius: 12px;
}
.clickfraud-main {
  display: flex;
  align-items: center;
  gap: 30px;
}
.clickfraud-icon i {
  width: 48px;
  height: 48px;
  color: var(--accent-cyan);
}
.clickfraud-text h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}
.clickfraud-text p { margin: 0; }
.clickfraud-text strong { color: var(--accent-cyan); font-weight: 600; }

.clickfraud-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap; /* Чтобы текст не переносился */
}
.toggle-switch {
    width: 60px;
    height: 30px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 4px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}
.toggle-pill {
    width: 22px;
    height: 22px;
    background: #ff4d4d; /* Красный по умолчанию (Без Talosion) */
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translateX(30px);
}
.toggle-switch.active {
    background-color: rgba(0, 255, 242, 0.2);
}
.toggle-switch.active .toggle-pill {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    transform: translateX(0px);
}

/* НОВЫЕ СТИЛИ для списка угроз */
.threat-list-container {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    border-top: 1px solid transparent;
    margin-top: 0;
    padding-top: 0;
}
.threat-list-container.visible {
    max-height: 500px; /* Достаточная высота для раскрытия */
    border-top-color: var(--border-color);
    margin-top: 30px;
    padding-top: 30px;
}
.threat-list-container h4 {
    color: #ff4d4d;
    text-align: center;
    margin-bottom: 20px;
}
.threat-list-container ul {
    list-style: none;
    columns: 2;
    padding: 0;
}
.threat-list-container li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-muted);
}
.threat-list-container li i {
    width: 20px;
    height: 20px;
    color: #ff8c00;
}

/* АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 992px) {
    .clickfraud-main {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .clickfraud-toggle {
        margin-left: 0;
        margin-top: 20px;
    }
    .threat-list-container ul {
        columns: 1;
    }
}

/* === СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ === */
.contact-page {
  padding-top: 140px; /* Больше отступ сверху из-за header */
  padding-bottom: 100px;
}

.contact-page h1 {
  text-align: center;
}

.contact-page > .container > p {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}

.contact-grid {
  display: flex;
  gap: 50px;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contact-details {
  flex: 1;
}

.contact-details h3,
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--text-light);
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.contact-details i {
  color: var(--accent-cyan);
  width: 20px;
  height: 20px;
}

.contact-form {
  flex: 2;
}

/* Применяем стили к полям формы */
.contact-form .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: "Ubuntu", sans-serif;
  min-height: 150px;
  resize: vertical;
}

.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 242, 0.1);
}

/* Стили для reCAPTCHA */
.contact-form .g-recaptcha {
  margin-bottom: 20px;
  /* Центрирование, если нужно */
  /* display: flex; */
  /* justify-content: center; */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
    gap: 40px;
    padding: 30px;
  }
}

/* === KEY FEATURES SECTION === */
.key-features-section {
  background-color: var(--bg-darker);
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  /* Создаем 5 колонок на десктопе, которые будут адаптироваться */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 255, 242, 0.1);
}

.feature-card .icon {
  color: var(--accent-cyan);
  margin-bottom: 20px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.features-summary {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--bg-dark);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.features-summary h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.features-summary h3 .gradient-text {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-summary p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* === СТИЛИ ДЛЯ БАЗЫ ЗНАНИЙ (Knowledge Base) === */
.kb-page {
  padding-top: 120px;
  padding-bottom: 100px;
}

.kb-page h1 {
  margin-bottom: 40px;
  text-align: center;
}

.kb-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* --- Боковое меню (Сайдбар) --- */
.kb-sidebar {
  flex: 0 0 280px; /* Фиксированная ширина сайдбара */
  position: sticky;
  top: 100px; /* Отступ от верха, чтобы не прилипало к header */
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
}

.kb-sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
}

.kb-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kb-nav li a {
  display: block;
  padding: 12px 15px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.kb-nav li a:hover {
  color: var(--text-light);
  background-color: rgba(0, 255, 242, 0.1);
}

/* Активный пункт меню */
.kb-nav li.active a {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  color: var(--bg-dark);
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 170, 255, 0.2);
}

/* --- Основной контент --- */
.kb-content {
  flex: 1; /* Занимает все оставшееся место */
  min-width: 0; /* Важно для flex-контейнеров */
}

.kb-article {
  margin-bottom: 60px; /* Отступ между статьями */
}

.kb-article h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: left; /* Переопределяем центрирование */
}

.kb-article h3 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--accent-cyan);
}

.kb-article p, .kb-article li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.kb-article a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
}
.kb-article a:hover {
  text-decoration: underline;
}

/* Стилизация скриншотов */
.screenshot-wrapper {
  margin: 30px 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden; /* Чтобы скруглить углы у картинки */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  background-color: var(--bg-darker);
}

.screenshot-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Стилизация для блоков кода */
.kb-article pre {
  background: var(--bg-dark);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.kb-article code {
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
  .kb-layout {
    flex-direction: column;
  }
  .kb-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 40px;
  }
}
/* === СТИЛИ ДЛЯ СТРАНИЦЫ "О ПРОЕКТЕ" === */

.about-page {
  padding-top: 120px;
  padding-bottom: 100px;
  background-color: var(--bg-dark);
}

/* Блок "От автора" */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.about-photo {
  flex-shrink: 0;
}

.about-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid var(--accent-cyan);
  object-fit: cover;
  box-shadow: 0 0 25px rgba(0, 255, 242, 0.2);
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.about-text .subtitle {
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 25px;
  display: block;
  font-size: 1.1rem;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 15px;
}

.about-text .highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Временная шкала "История проекта" */
.story-timeline {
    margin-bottom: 80px;
}

.story-timeline h2 {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 40px;
    border-left: 2px solid var(--border-color);
}
.timeline-item:last-child {
    border-left: 2px solid transparent; /* Убираем линию у последнего элемента */
    padding-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -21px; /* (40px/2) + 1px border */
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon i {
    color: var(--accent-cyan);
    width: 24px;
    height: 24px;
}

.timeline-content h4 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    max-width: 800px;
}

/* Блок с призывом к действию */
.contact-cta {
    text-align: center;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}
.contact-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.contact-cta p {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .timeline-item {
        padding-left: 40px;
    }
    .timeline-icon {
        left: -21px;
    }
}

/* Стили для имитации админки в Базе Знаний */
.kb-admin-sim {
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    background-color: #f5f8fa;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.kb-admin-sim h4 {
    margin-top: 0;
    font-size: 16px;
    color: #181c32;
    border-bottom: 1px solid #eff2f5;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.kb-sim-field {
    margin-bottom: 15px;
}
.kb-sim-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #181c32;
    margin-bottom: 8px;
}
.kb-sim-field .sim-input {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid #e4e6ef;
    border-radius: 6px;
    background-color: #fff;
    font-family: monospace;
    color: #5e6278;
    font-size: 13px;
}
.kb-sim-field .sim-input.sim-select {
    font-family: inherit;
}
.kb-sim-field .sim-input.sim-textarea {
    min-height: 80px;
    font-family: monospace;
    white-space: pre;
}
.kb-sim-field .sim-help {
    font-size: 12px;
    color: #a1a5b7;
    margin-top: 6px;
}
/* Стили для блоков внимания */
.kb-alert {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid transparent;
}
.kb-alert svg {
    flex-shrink: 0;
    margin-right: 12px;
    margin-top: 2px;
}
.kb-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.faq-item {
    border-bottom: 1px solid #eff2f5;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.faq-question {
    font-weight: 600;
    color: #00aaff;;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    padding-right: 30px; /* Место для иконки */
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    color: #009ef7;
}
.faq-answer {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.7;
    color: #5e6278;
}
/* === СТИЛИ ДЛЯ ОПИСАНИЯ БАШЕН === */
.tower-descriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.tower-desc-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.tower-desc-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 255, 242, 0.1);
}

.tower-desc-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 255, 242, 0.1), rgba(0, 170, 255, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tower-desc-icon i {
  color: var(--accent-cyan);
  width: 28px;
  height: 28px;
}

.tower-desc-content h4 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: var(--text-light);
}

.tower-desc-content p {
  margin: 0 0 15px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.threat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.threat-tags span {
  font-family: monospace;
  font-size: 0.8rem;
  background: var(--bg-dark);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}
/* === СТИЛИ ДЛЯ СЕКЦИИ УГРОЗ === */
.threats-section {
  background-color: var(--bg-dark); /* Или var(--bg-darker), на ваш вкус */
}

.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.threat-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.threat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 140, 0, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.threat-icon i {
  color: #ff8c00; /* Оранжевый цвет для иконок угроз */
  width: 28px;
  height: 28px;
}

.threat-card h4 {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.threat-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === СТИЛИ ДЛЯ СЕКЦИИ CMS === */
.cms-protection-section {
    background-color: var(--bg-dark);
}
.cms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.cms-card {
    display: block;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
.cms-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 242, 0.1);
}
.cms-card img {
    height: 50px;
    margin-bottom: 20px;
}
.cms-card .generic-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}
.cms-card h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.cms-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}
.cms-card .details-link {
    color: var(--accent-cyan);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cms-card .details-link i {
    transition: transform 0.3s ease;
}
.cms-card:hover .details-link i {
    transform: translateX(5px);
}

/* ============================================ */
/*   СТИЛИ СЕКЦИИ "ЦИФРОВАЯ БЕЗМЯТЕЖНОСТЬ"      */
/* ============================================ */

.serenity-section-dark {
    position: relative; /* Необходимо для позиционирования фона */
    padding: 120px 0;
    /* Используем основной темный цвет вашего дизайна */
    background-color: #151521; /* Запасной вариант, если переменная не сработает */
    background-color: var(--sidebar-bg, #151521); 
    color: #a2a3b7; /* Основной цвет текста, как в сайдбаре */
    overflow: hidden; /* Чтобы фон не вылезал */
}

.serenity-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Создаем эффект "роскошной ряби" */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 158, 247, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(80, 205, 137, 0.08) 0%, transparent 40%);
    background-size: 100% 100%;
    animation: ripple 20s infinite linear;
    opacity: 0.7;
}

/* Анимация для "дыхания" фоновой ряби */
@keyframes ripple {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.serenity-section-dark .container {
    position: relative; /* Чтобы контент был поверх фона */
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.serenity-content {
    /* Дополнительный эффект, чтобы текст был еще читабельнее */
    /* background: rgba(10, 10, 20, 0.1); */
    /* backdrop-filter: blur(2px); */
    /* padding: 40px; */
    /* border-radius: 12px; */
}

.serenity-title {
    font-size: 42px;
    font-weight: 500;
    line-height: 1.3;
    color: #ffffff; /* Белый для заголовков */
    margin: 0 auto 15px auto;
    max-width: 700px;
}

/* Выделяем ключевые слова */
.serenity-title .highlight-word {
    font-weight: 700;
    /* Ваш основной акцентный цвет */
    color: #00b2ff; 
    color: var(--accent-color, #00b2ff);
}

.serenity-subtitle {
    font-size: 18px;
    color: #a2a3b7; /* Цвет текста как в сайдбаре */
    margin: 30px auto 40px auto;
    max-width: 550px;
}

.serenity-cta .cta-button {
    display: inline-block;
    background: var(--accent-color, #009ef7);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 158, 247, 0.2);
    border: 1px solid transparent;
}

.serenity-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 158, 247, 0.3);
    background-color: #00b2ff;
}

/* ======================================= */
/*      СТИЛИ ДЛЯ СЕКЦИИ ИСТОРИЙ УСПЕХА      */
/* ======================================= */
.success-stories-section {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.stories-grid {
    display: grid;
    /* По умолчанию одна колонка для мобильных устройств */
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Для экранов шире 768px (планшеты и десктопы) делаем две колонки */
@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.story-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 255, 242, 0.1);
}

.story-image {
    overflow: hidden;
    /* Убираем фиксированную высоту и задаем соотношение сторон. 
       16 / 9 - стандартное соотношение, можете поменять на 4 / 3 или 1 / 1, если нужно. */
    aspect-ratio: 16 / 9; 
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 25px;
    flex-grow: 1; /* Заставляет контент занимать все доступное место */
}

.story-tag {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  color: #0f172a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.story-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.story-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.story-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: rgba(0, 255, 242, 0.05);
    border-top: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--accent-cyan);
    transition: background-color 0.3s ease;
}

.story-card:hover .story-link {
    background-color: rgba(0, 255, 242, 0.1);
}

.story-link i {
    transition: transform 0.3s ease;
}

.story-card:hover .story-link i {
    transform: translateX(5px);
}

/* Стили для страницы с полной историей */
.story-page {
  padding-top: 140px;
  padding-bottom: 100px;
}

.story-header {
  text-align: center;
  margin-bottom: 40px;
}

.story-header .story-tag {
    font-size: 1rem;
    padding: 8px 20px;
}

.story-header h1 {
  margin: 20px 0 10px 0;
}

.story-meta {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.story-full-image {
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.story-full-image img {
  width: 100%;
  display: block;
}

.story-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.story-body h3 {
  font-size: 1.6rem;
  color: var(--accent-cyan);
  margin-top: 40px;
  margin-bottom: 15px;
}
.story-body p {
    color: var(--text-muted);
}
.story-body a {
    color: var(--accent-cyan);
}

/* ======================================= */
/*      СТИЛИ ДЛЯ СЕКЦИИ-ПРИЗЫВА (CTA)       */
/* ======================================= */
.setup-guide-cta-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background: linear-gradient(95deg, var(--card-bg) 50%, rgba(0, 170, 255, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.cta-image {
    flex: 0 0 45%; /* Картинка занимает 45% ширины */
    align-self: stretch; /* Растягиваем по высоте */
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-content {
    flex: 1;
    padding: 50px;
}

.cta-content h3 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--text-light);
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
}

.cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-btn-outline:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 242, 0.2);
}

.cta-btn-outline i {
    transition: transform 0.3s ease;
}

.cta-btn-outline:hover i {
    transform: translateX(5px);
}

/* Адаптация для мобильных устройств */
@media (max-width: 992px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }
    .cta-image {
        width: 100%;
        max-height: 250px;
    }
    .cta-content {
        padding: 40px 30px;
    }
    .cta-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

.video-wrapper {
            max-width: 900px; /* Ограничиваем максимальную ширину видео на десктопе */
            margin: 40px auto 0; /* Центрируем блок с видео и добавляем отступ сверху */
            border-radius: 12px; /* Приятные скругленные углы */
            overflow: hidden;    /* Прячем углы iframe, которые могут вылезать */
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Легкая тень для объема */
            background-color: #000; /* Черный фон на случай медленной загрузки видео */
        }

        .responsive-video {
            position: relative;
            padding-top: 56.25%; /* Соотношение сторон 16:9 (9 / 16 = 0.5625) */
            height: 0;
            overflow: hidden;
        }

        .responsive-video iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        .cta-button-wrapper {
            text-align: center;
            margin-top: 25px; /* Сохраняем отступ для кнопки */
        }
        
/* ======================================= */
/*      СТИЛИ ДЛЯ ПАРТНЕРСКОЙ СЕКЦИИ       */
/* ======================================= */
.partnership-section {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.partnership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.partnership-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.partnership-card.value-card {
    background: linear-gradient(135deg, rgba(0, 255, 242, 0.05), rgba(0, 170, 255, 0.05));
}

.partnership-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 255, 242, 0.1), rgba(0, 170, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.partnership-icon i {
    color: var(--accent-cyan);
    width: 28px;
    height: 28px;
}

.partnership-card h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.partnership-perks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.partnership-perks li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.partnership-perks li i {
    flex-shrink: 0;
    color: var(--accent-cyan);
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

.partnership-perks li strong {
    display: block;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.partnership-perks li span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.partnership-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.partnership-value-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Растягивает список, чтобы кнопка была внизу */
}
.partnership-value-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-light);
}
.partnership-value-list li i {
    flex-shrink: 0;
    color: #00ff8c; /* Зеленый для "ценности" */
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

.cta-wrapper {
    margin-top: auto; /* Прижимает кнопку к низу карточки */
    padding-top: 20px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 992px) {
    .partnership-grid {
        grid-template-columns: 1fr;
    }
    .partnership-card {
        padding: 30px;
    }
}

/* === СХЕМА РАБОТЫ СИСТЕМЫ === */
.workflow-diagram {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.workflow-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
    gap: 20px;
}

.workflow-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    min-width: 150px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.workflow-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.workflow-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.workflow-icon.large {
    font-size: 3rem;
    margin-bottom: 15px;
}

.workflow-item h4 {
    margin: 10px 0 5px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.workflow-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.workflow-center {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.workflow-main {
    background: linear-gradient(135deg, var(--accent-blue), #00a844);
    color: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 200, 83, 0.2);
    border: none;
}

.workflow-main h3 {
    margin: 15px 0 10px;
    font-size: 1.5rem;
}

.workflow-main p {
    margin: 0 0 20px;
    opacity: 0.9;
}

.workflow-features {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.workflow-arrows {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--accent-cyan);
    margin: 0 20px;
}

.input-point {
    border-color: var(--accent-cyan);
    background: rgba(255, 196, 0, 0.05);
}

.ai-provider {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

.result {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.workflow-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

/* === КЛАССИФИКАЦИЯ ПРЕСЕТОВ === */
.preset-category {
    margin-bottom: 50px;
}

.preset-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Адаптивность для схемы */
@media (max-width: 768px) {
    .workflow-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .workflow-item {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .workflow-arrows {
        display: none;
    }
    
    .workflow-legend {
        gap: 15px;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
}