/*
* АвтоЧат - Стили сайта
* Версия: 1.0.0
* Последнее обновление: апрель 2024
*/

/* ----- Основные настройки ----- */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #a7f3d0;
  --accent-color: #f97316;
  --text-color: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --background-color: #ffffff;
  --background-light: #f8fafc;
  --background-dark: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Сброс стилей */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

button {
  cursor: pointer;
}

/* ----- Контейнер и сетка ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

/* ----- Шапка и навигация ----- */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--background-color);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 700;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 0.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin: 0 0.75rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.nav-links a.btn-try {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.nav-links a.btn-try:hover {
  background-color: var(--primary-dark);
}

.nav-links a.btn-try:after {
  display: none;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: all var(--transition-fast);
}

/* ----- Герой-секция ----- */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(135deg, var(--background-light), var(--background-color));
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* ----- Кнопки ----- */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  text-align: center;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  text-align: center;
  border: none;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-outline:hover {
  background-color: var(--background-dark);
  color: var(--text-color);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ----- Секции ----- */
section {
  padding: 5rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.25rem;
  font-weight: 800;
}

section > .container > p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Живая демонстрация ----- */
.live-demo {
  background-color: var(--background-light);
}

.demo-chat {
  max-width: 500px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.status {
  font-size: 0.875rem;
  opacity: 0.8;
}

.status.online:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  margin-right: 0.375rem;
}

.chat-messages {
  padding: 1rem;
  height: 350px;
  overflow-y: auto;
}

.message {
  margin-bottom: 1rem;
  position: relative;
  max-width: 80%;
}

.message p {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.25rem;
}

.message .time {
  font-size: 0.75rem;
  color: var(--text-lighter);
  display: block;
}

.message.bot {
  align-self: flex-start;
}

.message.bot p {
  background-color: var(--background-light);
  border-top-left-radius: 0;
}

.message.user {
  margin-left: auto;
  text-align: right;
}

.message.user p {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-top-right-radius: 0;
}

.chat-input {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}

.chat-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chat-input button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  margin-left: 0.5rem;
  padding: 0 1rem;
  transition: background-color var(--transition-fast);
}

.chat-input button:hover {
  background-color: var(--primary-dark);
}

/* ----- Сравнение ----- */
.comparison {
  background-color: white;
}

.comparison-table {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.comparison-header {
  display: flex;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.comparison-header .comparison-cell {
  padding: 1rem;
  text-align: center;
}

.comparison-row {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-cell {
  flex: 1;
  padding: 1rem;
  text-align: center;
}

.comparison-cell:first-child {
  text-align: left;
  font-weight: 600;
  background-color: var(--background-light);
}

.comparison-row:nth-child(even) {
  background-color: var(--background-light);
}

.comparison-row:nth-child(odd) {
  background-color: white;
}

.comparison-cell.highlight {
  color: var(--secondary-dark);
  font-weight: 600;
}

/* ----- Интеграции ----- */
.integrations {
  background-color: var(--background-light);
}

.integration-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.integration-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
}

.integration-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.integration-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: var(--background-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.integration-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.integration-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.integration-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* ----- Примеры диалогов ----- */
.examples {
  background-color: white;
}

.examples-tabs {
  max-width: 800px;
  margin: 0 auto;
}

.tabs-header {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  border: none;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.tab-btn:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.tab-btn.active, .tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active:after {
  width: 100%;
}

.tabs-content {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tab-pane {
  display: none;
  padding: 1.5rem;
}

.tab-pane.active {
  display: block;
}

.chat-example {
  max-width: 600px;
  margin: 0 auto;
}

/* ----- CTA ----- */
.cta {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.cta .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.cta-note {
  font-size: 0.875rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ----- Случайные факты и счетчик ----- */
.random-facts {
  background-color: var(--background-light);
  text-align: center;
}

.fact {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  position: relative;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.fact:before {
  content: """;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-light);
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  opacity: 0.5;
}

.fact p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-color);
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.countdown {
  background-color: var(--accent-color);
  color: white;
  text-align: center;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-item span:first-child {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.countdown-item .label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* ----- Футер ----- */
footer {
  background-color: var(--text-color);
  color: white;
  padding: 4rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  max-width: 250px;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 0.875rem;
  opacity: 0.9;
}

.registration-number {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h3 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: white;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-info li svg {
  flex-shrink: 0;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  color: var(--primary-light);
}

.footer-social h3 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: background-color var(--transition-fast);
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ----- Cookie Banner ----- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  visibility: hidden;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-content {
  padding: 1.5rem;
}

.cookie-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.cookie-content p {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cookie-content a {
  font-size: 0.75rem;
  text-decoration: underline;
  opacity: 0.8;
}

/* ----- Блог ----- */
.blog-hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: white;
  text-align: center;
}

.blog-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.blog-layout {
  display: flex;
  gap: 3rem;
}

.blog-main {
  flex: 2;
}

.blog-sidebar {
  flex: 1;
}

.blog-card {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.blog-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-text {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.blog-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.blog-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.btn-read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.btn-read-more:hover {
  color: var(--primary-dark);
}

.btn-read-more:after {
  content: '→';
  margin-left: 0.5rem;
}

.sidebar-widget {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.sidebar-widget h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.category-list li {
  margin-bottom: 0.75rem;
}

.category-list a {
  display: flex;
  align-items: center;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.category-list a:hover {
  color: var(--primary-color);
}

.category-list a:before {
  content: '•';
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.popular-posts li {
  margin-bottom: 1rem;
}

.popular-posts a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-color);
}

.popular-posts img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.popular-posts h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  transition: color var(--transition-fast);
}

.popular-posts a:hover h4 {
  color: var(--primary-color);
}

.popular-posts span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subscribe-form input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}

.subscribe-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ----- Страница "О нас" ----- */
.about-hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
  color: white;
  text-align: center;
}

.about-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.about-story {
  background-color: white;
}

.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.mission-values {
  background-color: var(--background-light);
}

.mission-box {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.mission-box h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.mission-box p {
  font-size: 1.125rem;
  color: var(--text-color);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-fast);
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-icon {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.value-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.value-card p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.team {
  background-color: white;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background-color: var(--background-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.team-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.team-card p {
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.team-card p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
}

.team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--background-dark);
  border-radius: 50%;
  color: var(--text-color);
  transition: all var(--transition-fast);
}

.team-social a:hover {
  background-color: var(--primary-color);
  color: white;
}

.achievements {
  background-color: var(--primary-color);
  color: white;
}

.achievements h2 {
  color: white;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.achievement-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.achievement-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
}

.achievement-card p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.partners {
  background-color: white;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

.partner-logo img {
  max-width: 150px;
  max-height: 60px;
  object-fit: contain;
}

/* ----- Контактная страница ----- */
.contact-hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: white;
  text-align: center;
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.contact-info {
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-card {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.contact-card a {
  font-weight: 600;
  color: var(--text-color);
}

.contact-form-section {
  background-color: var(--background-light);
}

.form-map-container {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
}

.map-container {
  flex: 1;
  min-width: 300px;
}

.contact-form-container h2 {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.contact-form-container p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 0.875rem;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
  background-color: var(--background-dark);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contact-form button {
  grid-column: span 2;
}

.map {
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-info {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.map-info h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.map-info p {
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.faq {
  background-color: white;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background-color: var(--background-light);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  border: none;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.accordion-icon {
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.25rem;
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

.accordion-content p {
  padding-bottom: 1.25rem;
  color: var(--text-light);
}

/* ----- Модальное окно ----- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modal.visible {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition-fast);
}

.modal.visible .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

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

.success-icon {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.modal h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.modal p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ----- Блог-пост ----- */
.blog-post {
  padding: 5rem 0;
  background-color: var(--background-light);
}

.post-content {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 3rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  padding: 1.5rem 1.5rem 0;
}

.post-meta span {
  display: flex;
  align-items: center;
}

.post-category {
  color: var(--primary-color);
  font-weight: 500;
}

.post-header h1 {
  font-size: 2.5rem;
  margin: 1rem 1.5rem 1.5rem;
}

.post-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.post-body {
  padding: 2rem 1.5rem;
}

.post-body h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.post-body p {
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.post-body ul, .post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-body ul {
  list-style-type: disc;
}

.post-body ol {
  list-style-type: decimal;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body blockquote {
  padding: 1.5rem;
  background-color: var(--background-light);
  border-left: 4px solid var(--primary-color);
  margin: 1.5rem 0;
  font-style: italic;
}

.post-body blockquote p {
  margin-bottom: 0;
}

.post-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.post-tags span {
  font-weight: 600;
}

.post-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--background-light);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-color);
  transition: all var(--transition-fast);
}

.post-tags a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-share span {
  font-weight: 600;
}

.post-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.share-facebook {
  background-color: #1877f2;
  color: white;
}

.share-twitter {
  background-color: #1da1f2;
  color: white;
}

.share-linkedin {
  background-color: #0a66c2;
  color: white;
}

.share-whatsapp {
  background-color: #25d366;
  color: white;
}

.post-share a:hover {
  transform: translateY(-3px);
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-top: 3rem;
  text-align: center;
}

.cta-box h3 {
  margin-bottom: 1rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-box .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.cta-box .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.related-posts {
  margin-bottom: 3rem;
}

.related-posts h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.related-post {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.related-post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.related-post a {
  color: var(--text-color);
  display: block;
}

.related-post a:hover img {
  transform: scale(1.05);
}

.related-post h4 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.related-post a:hover h4 {
  color: var(--primary-color);
}

.related-date {
  display: block;
  padding: 0 1rem 1rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.post-navigation {
  display: flex;
  justify-content: center;
}

.post-navigation-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 500px;
}

.post-navigation a {
  padding: 0.75rem 1.5rem;
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.post-navigation a:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ----- Адаптивность ----- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about-content, .hero .container {
    flex-direction: column;
  }
  
  .form-map-container {
    flex-direction: column;
  }
  
  .blog-layout {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: 0;
    height: calc(100vh - 80px);
    width: 50%;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links li {
    margin: 1rem 0;
  }
  
  .nav-links.active {
    transform: translateX(0%);
  }
  
  .burger {
    display: block;
  }
  
  .comparison-table {
    overflow-x: auto;
  }
  
  .integration-cards, .contact-grid {
    justify-content: center;
  }
  
  .post-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .post-navigation-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p, section p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .comparison-cell {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }
  
  .tabs-header {
    flex-wrap: wrap;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .contact-form button {
    grid-column: span 1;
  }
  
  .nav-links {
    width: 70%;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Анимации для бургер-меню */
.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
  opacity: 0;
}

.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}
