:root {
  --color-primary: #2E7D32;
  --color-secondary: #4CAF50;
  --color-accent: #FF9800;
  --color-bg-light: #F4F1E6;
  --color-bg-alt: #F8F9FA;
  --color-text-primary: #333333;
  --color-text-secondary: #666666;
  --color-border: #E0E0E0;
  --color-white: #FFFFFF;
  --shadow-card: 0 4px 6px rgba(0,0,0,0.05);
  --border-radius: 12px;
  --container-width: 1200px;
  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  line-height: 1.5;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

p {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background-color: var(--color-border);
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Хедер */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-weight: 700;
  font-size: 24px;
  color: var(--color-primary);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 500;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--color-secondary);
}

.header-buttons {
  display: flex;
  gap: 16px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  width: 30px;
  height: 3px;
  background-color: var(--color-text-primary);
  transition: var(--transition);
}

/* Hero секция */
.hero {
  padding-top: 160px;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-bg-alt) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  color: var(--color-primary);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Сетки */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-content: center;
  margin: 0 auto;
  max-width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center;
  margin: 0 auto;
  max-width: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Карточки целей */
.target-card .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.target-card:hover {
  transform: translateY(-5px);
}

.target-icon {
  font-size: 48px;
  margin-bottom: 20px;
  text-align: center;
}

.target-card .card p {
  flex-grow: 1;
}

.target-card .card a {
  margin-top: 16px;
  display: inline-block;
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
}

.target-card .card a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Дашборд */
.dashboard {
  background-color: var(--color-bg-light);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.dashboard-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.dashboard-card.highlight {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.dashboard-card.highlight .metric-value {
  color: var(--color-white);
}

.metric-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.metric-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
}

.dashboard-card.highlight .metric-label {
  color: rgba(255,255,255,0.9);
}

.chart-container {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

/* Как работает */
.how-it-works {
  background-color: var(--color-white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.step {
  text-align: center;
  padding: 24px;
  background-color: var(--color-bg-alt);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.step i {
  font-size: 48px;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.step h4 {
  margin-bottom: 12px;
  color: var(--color-primary);
}

.step p {
  font-size: 14px;
  margin: 0;
}

/* Тарифы */
.tariffs {
  background-color: var(--color-bg-alt);
}

.tariff-card {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 32px 24px 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.tariff-card.popular {
  border-color: var(--color-accent);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.tariff-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 20px 0;
}

.tariff-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.tariff-features {
  margin: 20px 0;
  flex-grow: 1;
}

.tariff-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tariff-features li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--color-text-secondary);
  text-align: left;
}

.tariff-features li:before {
  content: "\2713";
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.tariff-card .btn {
  margin-top: auto;
  width: 100%;
}

/* О компании */
.about {
  background-color: var(--color-white);
}

.about .grid-2 {
  align-items: center;
}

.about-content h2 {
  text-align: left;
  margin-bottom: 20px;
}

.about-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.about-image {
  min-height: 300px;
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius);
}

/* Партнеры (тикер) */
.partners-ticker {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-white);
  padding: 20px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}

.partners-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-secondary);
  opacity: 0.7;
  transition: var(--transition);
}

.ticker-track span:hover {
  opacity: 1;
  color: var(--color-primary);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
}

.faq-question:hover {
  color: var(--color-secondary);
}

.faq-icon {
  color: var(--color-accent);
  font-size: 24px;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 16px 16px;
}

/* Футер */
.footer {
  background-color: var(--color-bg-alt);
  color: var(--color-text-primary);
  padding: 60px 0 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo {
  font-weight: 700;
  font-size: 24px;
  color: var(--color-primary);
}

.footer-contacts p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-secondary);
}

.footer-contacts i {
  width: 20px;
  color: var(--color-secondary);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: var(--color-text-secondary);
  font-size: 24px;
  transition: var(--transition);
}

.footer-social a:hover {
  transform: translateY(-3px);
  color: var(--color-secondary);
}

.footer-docs {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-docs a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 14px;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-docs a:hover {
  opacity: 1;
  text-decoration: underline;
  color: var(--color-secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  color: var(--color-text-secondary);
  opacity: 0.8;
  margin: 0;
}

.back-to-top {
  width: 40px;
  height: 40px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.back-to-top:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
}

.back-to-top i {
  color: var(--color-white);
  font-size: 20px;
}

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-text-secondary);
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal h3 {
  margin-bottom: 24px;
  color: var(--color-primary);
}

/* Формы */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* Антиспам слайдер */
.antispam {
  background-color: var(--color-bg-light);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.antispam-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.antispam-slider {
  width: 100%;
  height: 40px;
  background-color: var(--color-border);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}

.antispam-thumb {
  width: 60px;
  height: 40px;
  background-color: var(--color-secondary);
  border-radius: 20px;
  position: absolute;
  left: 0;
  transition: left 0.1s ease, background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 18px;
  cursor: grab;
}

.antispam-thumb:active {
  cursor: grabbing;
}

.antispam.success .antispam-thumb {
  background-color: var(--color-primary);
}

.antispam-status {
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-secondary);
  min-height: 18px;
}

/* Кнопка перехода к тарифам в модальном окне */
.modal-footer {
  margin-top: 30px;
  text-align: right;
}

.modal-footer .btn {
  display: inline-block;
}

/* Утилиты */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}