:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3a0ca3;
    --secondary: #7209b7;
    --accent: #f72585;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #ef233c;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Manrope', 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f5f7ff;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-icon {
    margin-right: 8px;
}

/* Хедер */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    z-index: 1001;
    text-decoration: none;
}

.logo-icon {
    margin-right: 10px;
    color: var(--primary);
    font-size: 2rem;
}

/* Бургер-меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Навигация */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-link {
    font-weight: 600;
    color: var(--dark);
    padding: 10px 0;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.nav-link.active {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    margin-left: 20px;
}

.auth-buttons .btn {
    margin-left: 15px;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-item {
    margin-bottom: 20px;
}

.mobile-nav-link {
    font-weight: 600;
    color: var(--dark);
    padding: 12px 0;
    display: block;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-nav-link.active {
    color: var(--primary);
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

/* Глобальная поисковая строка */
.global-search-container {
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 999;
    padding: 1px 0 15px;
    border-bottom: 1px solid var(--light-gray);
}

.global-search-form {
    display: flex;
    max-width: 100%;
}

#global-search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: 1rem;
    outline: none;
    height: 50px;
}

.global-search-form .search-btn {
    padding: 0 30px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    height: 50px;
}

.global-search-form .search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* Стили для заголовка поиска */
.search-header {
  text-align: center;
  margin-bottom: 25px;
  padding: 0 10px;
}

.search-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.search-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

.search-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.stats-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 5px;
  position: relative;
}

.stats-number::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stats-label {
  font-size: 1.2rem;
  color: var(--gray);
  font-weight: 500;
}

/* Герой секция */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(67,97,238,0.1) 0%, rgba(67,97,238,0) 70%);
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-title span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateY(-10deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-10deg) translateY(-20px); }
}

/* Особенности */
.features {
    background: white;
    position: relative;
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(67,97,238,0.1) 0%, rgba(114,9,183,0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-text {
    color: var(--gray);
    line-height: 1.7;
}

/* Статистика */
.stats {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
}

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

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Как это работает */
.how-it-works {
    background: var(--light);
    padding: 80px 0;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.step {
    display: flex;
    align-items: flex-start;
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.step-number {
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-right: 20px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-text {
    color: var(--gray);
    line-height: 1.7;
}

/* Тарифы */
.pricing {
    background: white;
    padding: 80px 0;
}

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

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

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

.pricing-card.popular {
    border: 2px solid var(--primary);
    position: relative;
}

.pricing-card.popular::before {
    content: 'Популярный';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(67,97,238,0.1) 0%, rgba(114,9,183,0.1) 100%);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.pricing-period {
    color: var(--gray);
    font-size: 0.9rem;
}

.pricing-features {
    padding: 30px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--dark);
}

.pricing-feature i {
    color: var(--primary);
    margin-right: 10px;
}

.pricing-footer {
    padding: 0 30px 30px;
    text-align: center;
}

/* Отзывы */
.testimonials {
    background: var(--light);
    padding: 80px 0;
}

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

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.testimonial-text {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: ' ';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

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

/* Футер */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}

.footer-contact-item i {
    margin-right: 10px;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

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

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

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

.modal-body {
    padding: 30px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.2);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Результаты поиска */
.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.result-item:hover {
    background-color: rgba(67,97,238,0.05);
}

.result-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.result-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--gray);
}

.result-details span {
    display: flex;
    align-items: center;
}

.result-details i {
    margin-right: 5px;
}

/* Форма оплаты */
.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method.selected {
    border-color: var(--primary);
    background: rgba(67,97,238,0.05);
}

.payment-method i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--gray);
}

.payment-method.selected i {
    color: var(--primary);
}

/* SEO текст */
.seo-section {
    background: white;
    padding: 60px 0;
}

.seo-container {
    max-width: 1000px;
    margin: 0 auto;
}

.seo-content {
    line-height: 1.8;
    color: var(--dark);
}

.seo-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.seo-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--primary);
}

.seo-content p {
    margin-bottom: 15px;
}

.seo-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.seo-content li {
    margin-bottom: 10px;
}

.highlight {
    background: linear-gradient(135deg, rgba(67,97,238,0.1) 0%, rgba(114,9,183,0.1) 100%);
    padding: 2px 5px;
    border-radius: 4px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4361ee;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
    z-index: 9999;
    border: none;
    outline: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #3a0ca3;
    transform: translateY(-3px);
}

/* Автодополнение */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--light-gray);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: none;
}

.autocomplete-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.autocomplete-suggestion:hover {
    background-color: var(--light);
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.suggestion-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.suggestion-details {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.suggestion-details span {
    display: flex;
    align-items: center;
}

.suggestion-details i {
    margin-right: 3px;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: white;
    border-radius: var(--radius-md);
    padding: 15px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    z-index: 3000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.notification.visible {
    transform: translateX(0);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.success .notification-icon {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.notification.error {
    border-left: 4px solid var(--danger);
}

.notification.error .notification-icon {
    background: rgba(239, 35, 60, 0.1);
    color: var(--danger);
}

.notification-content h4 {
    font-weight: 700;
    margin-bottom: 5px;
}

.notification-content p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Модальные окна для успешных действий */
.success-modal .modal-content {
    max-width: 400px;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 20px;
}

/* API секция */
.api-hero {
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.api-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(114,9,183,0.1) 0%, rgba(114,9,183,0) 70%);
    z-index: 0;
}

.api-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.api-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.api-hero-title span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.api-hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.api-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto;
}

.api-advantage {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    text-align: center;
}

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

.api-advantage i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.api-advantage h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.api-advantage p {
    color: var(--gray);
    line-height: 1.7;
}

.api-integration {
    background: white;
    padding: 80px 0;
}

.integration-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.integration-content {
    flex: 1;
}

.integration-image {
    flex: 1;
    position: relative;
}

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

.api-code {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: var(--radius-md);
    padding: 25px;
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.5;
    margin: 30px 0;
    overflow-x: auto;
}

.api-code .keyword {
    color: #569cd6;
}

.api-code .function {
    color: #dcdcaa;
}

.api-code .string {
    color: #ce9178;
}

.api-code .comment {
    color: #6a9955;
}

.api-code .number {
    color: #b5cea8;
}

.api-docs {
    background: var(--light);
    padding: 80px 0;
}

.docs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.docs-list {
    list-style: none;
    margin: 40px 0;
}

.docs-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.docs-header {
    padding: 20px;
    background: rgba(67,97,238,0.05);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.docs-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.docs-item.active .docs-content {
    padding: 20px;
    max-height: 1000px;
}

.endpoints-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.endpoints-table th, .endpoints-table td {
    border: 1px solid var(--light-gray);
    padding: 12px 15px;
    text-align: left;
}

.endpoints-table th {
    background: rgba(67,97,238,0.05);
    font-weight: 600;
}

.endpoint-method {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.method-get {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.method-post {
    background: rgba(72, 149, 239, 0.1);
    color: var(--primary-light);
}

.api-faq {
    padding: 80px 0;
    background: white;
}

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

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px;
    background: rgba(67,97,238,0.05);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .api-hero-title {
        font-size: 3rem;
    }
    
    .global-search-container {
        top: 80px;
    }
}

@media (max-width: 992px) {
    .integration-container {
        flex-direction: column;
    }
    
    .integration-content, .integration-image {
        flex: none;
        width: 100%;
    }
    
    .integration-image {
        order: -1;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .auth-buttons {
        display: none;
    }
    
    /* Адаптация поисковой строки */
    .global-search-container {
        top: 70px;
        padding: 8px 0;
    }
    
    #global-search-input {
        padding: 10px 15px;
        height: 44px;
        font-size: 0.95rem;
    }
    
    .global-search-form .search-btn {
        padding: 0 18px;
        height: 44px;
        font-size: 0.95rem;
    }
    
    /* Адаптация заголовка поиска */
    .search-title {
        font-size: 1.6rem;
    }
    
    .stats-number {
        font-size: 2.2rem;
    }
    
    .stats-label {
        font-size: 1.1rem;
    }
    
    /* Адаптация секции API */
    .api-hero {
        padding-top: 140px;
    }
}

@media (max-width: 768px) {
    .api-hero {
        padding: 130px 0 80px;
    }
    
    .api-hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding-top: 130px;
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .global-search-container {
        top: 65px;
    }
    
    /* Адаптация заголовка поиска */
    .search-header {
        margin-bottom: 20px;
        padding-top: 30px;
    }
    
    .search-title {
        font-size: 1.4rem;
    }
    
    .stats-number {
        font-size: 1.8rem;
    }
    
    .stats-label {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .api-hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Адаптация поисковой строки для маленьких экранов */
    .global-search-container {
        top: 35px;
        padding: 6px 0;
    }
    
    #global-search-input {
        padding: 8px 12px;
        height: 42px;
        font-size: 0.9rem;
    }
    
    .global-search-form .search-btn {
        padding: 0 15px;
        height: 42px;
        font-size: 0.9rem;
    }
    
    /* Адаптация заголовка поиска для маленьких экранов */
    .search-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .stats-number {
        font-size: 1.6rem;
    }
    
    /* Адаптация секции API для маленьких экранов */
    .api-hero {
        padding-top: 110px;
        padding-bottom: 60px;
    }
    .search-promo {
  margin-bottom: 20px;
  text-align: center;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

.search-promo p:first-child {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 18px;
}
}