/* Base Styles */
:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-foreground: #ffffff;
    --secondary: #f3f4f6;
    --secondary-foreground: #1f2937;
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;
    --background: #ffffff;
    --foreground: #1f2937;
    --border: #e5e7eb;
    --border-hover: #d1d5db;
    --card: #ffffff;
    --card-foreground: #1f2937;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --ring: #3b82f6;
    --radius: 1rem;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --bg-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --hover-color: #f5f5f5;
    --primary-color: #007AFF;
}

.dark {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-foreground: #1f2937;
    --secondary: #1f2937;
    --secondary-foreground: #f9fafb;
    --muted: #1f2937;
    --muted-foreground: #9ca3af;
    --background: #0f172a;
    --foreground: #f9fafb;
    --border: #1f2937;
    --border-hover: #374151;
    --card: #1f2937;
    --card-foreground: #f9fafb;
    --destructive: #7f1d1d;
    --destructive-foreground: #f9fafb;
    --ring: #3b82f6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
        "Helvetica Neue", sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    font-size: 16px;
}

.site-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    transition: all 0.3s ease;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;

}

.site-header.scrolled {
    top: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dynamic-island {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    width: fit-content;
    margin: 0 auto;
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.logo-text {
    font-weight: 600;
    font-size: 1.2rem;
    display: none;
    color: #000000;
}

@media (min-width: 430px) {
    .logo-text {
        display: inline-block;
    }
}

.desktop-nav {
    display: flex;
    gap: 24px;
    margin: 0 24px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.theme-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--hover-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color);
}

.menu-toggle .close-icon {
    display: none;
}

.menu-toggle.active .menu-icon {
    display: none;
}

.menu-toggle.active .close-icon {
    display: block;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 280px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 40;
    display: none;
    flex-direction: column;
    padding: 20px;
    transform: translateX(120%) scale(0.8);
    transform-origin: top right;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.mobile-nav .nav-link {
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav .nav-link:hover {
    background: var(--hover-color);
    transform: translateX(4px);
}

.mobile-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Добавляем затемнение фона при открытом меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 35;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Анимация для иконки меню */
.menu-toggle {
    transition: transform 0.3s ease;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

.menu-toggle .menu-icon,
.menu-toggle .close-icon {
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-icon {
    transform: rotate(180deg);
    opacity: 0;
}

.menu-toggle.active .close-icon {
    transform: rotate(0);
    opacity: 1;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .site-header {
        top: 16px;
    }

    .site-header.scrolled {
        top: 0;
    }

    .desktop-nav {
        display: none;
    }

    .desktop-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }

    .dynamic-island {
        width: 75vw !important;
        max-width: 75vw !important;
        min-width: 75vw !important;
        justify-content: space-between;
        padding: 6px 12px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        display: inline-block;
        font-size: 0.9rem;
        margin-left: 8px;
        color: #000000;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Темная тема */
.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #333333;
    --hover-color: #2a2a2a;
}

/* Светлая тема */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --hover-color: #f5f5f5;
    --primary-color: #007AFF;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 2px solid transparent;
}

.btn svg {
    margin-left: 0.25rem;
}

.btn-lg {
    height: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

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

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--muted);
    border-color: var(--border-hover);
}

.btn-outline-light {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Badge Styles */
.badge {
    display: inline-block;
    border-radius: 9999px;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    margin-bottom: 1.5rem;
    margin-top: 1rem;

}

.fire-emoji {
    display: inline-block;
    animation: bounce 1s infinite ease-in-out;
    margin-right: 0.5em;
    /* Добавляем небольшой отступ после огонька */
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Hero Section */
.hero-section {
    width: 100%;
    padding: 6rem 0 0 0;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 9rem 0 0 0;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 12rem 0 0rem 0;
    }
}

.grid-background {
    position: absolute;
    inset: 0;
    z-index: -10;
    height: 100%;
    width: 100%;
    background-color: var(--background);
    background-image: linear-gradient(to right, #f0f0f0 1px, transparent 1px),
        linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 110%);
}

.dark .grid-background {
    background-image: linear-gradient(to right, #1f1f1f 1px, transparent 1px),
        linear-gradient(to bottom, #1f1f1f 1px, transparent 1px);
}

.hero-content {
    text-align: center;
    max-width: 59rem;
    margin: 0 auto 3rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    white-space: normal;
    word-wrap: break-word;
    hyphens: manual;
    -webkit-hyphens: manual;
    -ms-hyphens: manual;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        white-space: nowrap;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hero-feature svg {
    color: var(--primary);
}

.hero-image-container {
    position: relative;
    margin: 0 auto;
    max-width: 80rem;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(var(--border-rgb), 0.4);
    background: linear-gradient(to bottom, var(--background), rgba(var(--muted-rgb), 0.2));
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.glow-effect {
    position: absolute;
    z-index: -10;
    height: 300px;
    width: 300px;
    border-radius: 9999px;
    background: linear-gradient(to bottom right, rgba(var(--primary-rgb), 0.3), rgba(var(--ring-rgb), 0.3));
    filter: blur(24px);
    opacity: 0.7;
}

.glow-1 {
    bottom: -6rem;
    right: -6rem;
}

.glow-2 {
    top: -6rem;
    left: -6rem;
}

.hero-glow-3 {
    position: absolute;
    z-index: -10;
    height: 400px;
    width: 400px;
    border-radius: 9999px;
    background: linear-gradient(to top left, rgba(var(--primary-rgb), 0.4), rgba(var(--ring-rgb), 0.4));
    filter: blur(48px);
    opacity: 0.6;
    top: 10%;
    right: 10%;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-fade-up {
    animation: fadeUp 0.7s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logos Section */
.logos-section {
    width: 100%;
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-color: rgba(var(--muted-rgb), 0.3);
    overflow: hidden;
}

.logos-title {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.logos-grid {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.logos-grid:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-image {
    height: 8rem;
    width: auto;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

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

/* Section Styles */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-description {
    max-width: 50rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .section-description {
        font-size: 1.125rem;
    }
}

/* Features Section */
.features-section {
    width: 100%;
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .features-section {
        padding: 8rem 0;
    }
}

.features-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(var(--border-rgb), 0.4);
    border-radius: var(--radius);
    background: linear-gradient(to bottom, var(--background), rgba(var(--muted-rgb), 0.1));
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

.dark .feature-icon {
    background-color: rgba(var(--primary-rgb), 0.2);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--muted-foreground);
}

/* How It Works Section */
.how-it-works-section {
    width: 100%;
    padding: 6rem 0;
    background-color: rgba(var(--muted-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .how-it-works-section {
        padding: 9rem 0;
    }
}

.steps-container {
    position: relative;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.steps-line {
    display: none;
}

@media (min-width: 768px) {
    .steps-line {
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--border), transparent);
        transform: translateY(-50%);
        z-index: 0;
    }
}

.step {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    display: flex;
    height: 4rem;
    width: 4rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(to bottom right, var(--primary), rgba(var(--primary-rgb), 0.7));
    color: var(--primary-foreground);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--muted-foreground);
}

/* Testimonials Section */
.testimonials-section {
    width: 100%;
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .testimonials-section {
        padding: 9rem 0;
    }
}

.testimonials-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(var(--border-rgb), 0.4);
    border-radius: var(--radius);
    background: linear-gradient(to bottom, var(--background), rgba(var(--muted-rgb), 0.1));
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    display: flex;
    margin-bottom: 1rem;
}

.star-icon {
    color: #f59e0b;
}

.testimonial-quote {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(var(--border-rgb), 0.4);
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    font-weight: 500;
}

.author-name {
    font-weight: 500;
}

.author-role {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Pricing Section */
.pricing-section {
    width: 100%;
    padding: 6rem 0;
    background-color: rgba(var(--muted-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .pricing-section {
        padding: 9rem 0;
    }
}

.pricing-tabs {
    max-width: 80rem;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: var(--secondary);
    border-radius: 9999px;
    padding: 0.25rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    border: none;
    background: transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button.active {
    background-color: var(--background);
    box-shadow: var(--shadow);
}

.tab-content {
    display: none;
}

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

.pricing-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.pricing-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(var(--border-rgb), 0.4);
    border-radius: var(--radius);
    background: linear-gradient(to bottom, var(--background), rgba(var(--muted-rgb), 0.1));
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-bottom-left-radius: 0.5rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    margin-top: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
}

.period {
    color: var(--muted-foreground);
    margin-left: 0.25rem;
}

.pricing-description {
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.pricing-features {
    margin: 1.5rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
}

.pricing-feature svg {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* FAQ Section */
.faq-section {
    width: 100%;
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .faq-section {
        padding: 9rem 0;
    }
}

.faq-container {
    max-width: 48rem;
    margin: 0 auto;
}

.accordion {
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid rgba(var(--border-rgb), 0.4);
    padding: 0.5rem 0;
}

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

.accordion-header:hover {
    color: var(--primary);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

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

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.accordion-content p {
    padding: 0 0 1rem;
    color: var(--muted-foreground);
}

/* CTA Section */
.cta-section {
    width: 100%;
    padding: 6rem 0;
    background: linear-gradient(to bottom right, var(--primary), rgba(var(--primary-rgb), 0.8));
    color: white;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 9rem 0;
    }
}

.grid-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 4rem 4rem;
}

.cta-glow-1 {
    top: -6rem;
    left: -6rem;
    background: rgba(255, 255, 255, 0.1);
}

.cta-glow-2 {
    bottom: -6rem;
    right: -6rem;
    background: rgba(255, 255, 255, 0.1);
}

.cta-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-description {
    max-width: 44rem;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .cta-description {
        font-size: 1.25rem;
    }
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .cta-actions {
        flex-direction: row;
    }
}

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

/* Footer Styles */
.site-footer {
    width: 100%;
    border-top: 1px solid var(--border);
    background-color: rgba(var(--background-rgb), 0.95);
    backdrop-filter: blur(4px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 0;
}

@media (min-width: 1024px) {
    .footer-content {
        padding: 4rem 0;
    }
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

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

.social-link {
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--foreground);
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--foreground);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(var(--border-rgb), 0.4);
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.copyright {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--foreground);
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Styles */
.dark .sun-icon {
    display: block;
}

.dark .moon-icon {
    display: none;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

/* Projects Section */
.projects-section {
    width: 100%;
    padding: 2rem 0;
    background-color: rgba(var(--muted-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .projects-section {
        padding: 5rem 0;
    }
}

.projects-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: var(--secondary);
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.05);
}

.project-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.project-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.6;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.stack-item {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .project-media {
        /* height: 180px; */
    }

    .project-content {
        padding: 0.75rem;
        gap: 0.6rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-description {
        font-size: 0.95rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: var(--muted);
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--border);
    color: var(--foreground);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.project-section p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.project-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--muted-foreground);
}

.project-section li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }
}

/* Feedback Form Styles */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-foreground);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

@media (max-width: 768px) {
    .feedback-form {
        gap: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem 0.875rem;
    }
}

/* About Section Styles */
.about-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.about-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-section .section-description {
    max-width: 600px;
    margin: 1.5rem auto 0;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.about-section .features-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .about-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-section .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about-section .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.about-section .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-section .feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-section .feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.about-section .feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.about-section .feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.dark .about-section .feature-card {
    background: var(--dark-card-bg);
}

.dark .about-section .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.terms-content,
.offer-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.terms-content h1,
.offer-content h1 {
    margin-bottom: 30px;
    text-align: center;
}

.terms-content section,
.offer-content section {
    margin-bottom: 30px;
}

.terms-content h2,
.offer-content h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.terms-content p,
.offer-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Улучшение фокуса для доступности */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Плавные переходы для интерактивных элементов */
a,
button,
input,
select,
textarea,
.project-card {
    transition: all 0.2s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    /* Немного более выраженная тень при фокусе */
}

/* Базовые стили */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}



/* Demo container */
.demo-container {
    max-width: 42rem;
    margin: 0 auto;
}

/* Utility classes */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

.max-w-2xl {
    max-width: 42rem;
}

@media (min-width: 1024px) {
    .lg\:mx-0 {
        margin-left: 0;
        margin-right: 0;
    }
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.overflow-hidden {
    overflow: hidden;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded {
    border-radius: 0.25rem;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.bg-gray-700 {
    background-color: #374151;
}

.bg-gray-600 {
    background-color: #4b5563;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-yellow-500 {
    background-color: #eab308;
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-orange-500 {
    background-color: #f97316;
}

.bg-orange-400 {
    background-color: #fb923c;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.ring-1 {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1);
}

.ring-white\/10 {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1);
}

/* Flexbox */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-x-4 {
    column-gap: 1rem;
}

.gap-x-2 {
    column-gap: 0.5rem;
}

.gap-x-1\.5 {
    column-gap: 0.375rem;
}

.flex-1 {
    flex: 1 1 0%;
}

/* Padding */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

/* Dimensions */
.h-3 {
    height: 0.75rem;
}

.w-3 {
    width: 0.75rem;
}

.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

.h-8 {
    height: 2rem;
}

.w-8 {
    width: 2rem;
}

.h-16 {
    height: 4rem;
}

.w-3\/4 {
    width: 75%;
}

.w-1\/2 {
    width: 50%;
}

.w-5\/6 {
    width: 83.333333%;
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-bold {
    font-weight: 700;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-white {
    color: #ffffff;
}

.text-orange-400 {
    color: #fb923c;
}

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

/* Spacing */
.space-y-4> :not([hidden])~ :not([hidden]) {
    margin-top: 1rem;
}

.space-y-2> :not([hidden])~ :not([hidden]) {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

/* Gradients */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-orange-400 {
    --tw-gradient-from: #fb923c;
    --tw-gradient-to: rgb(251 146 60 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-transparent {
    --tw-gradient-to: transparent;
}

/* Positioning */
.-bottom-4 {
    bottom: -1rem;
}

.left-1\/2 {
    left: 50%;
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-x-1\/2 {
    --tw-translate-x: -50%;
}

.translate-y-full {
    --tw-translate-y: 100%;
}

/* Overflow */
.overflow-x-auto {
    overflow-x: auto;
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.hover\:text-white:hover {
    color: #ffffff;
}

/* Button styles */
button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

button:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 640px) {
    .demo-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .mt-8 {
        margin-top: 1.5rem;
    }
}

/* Стили для декоративного JSON блока */
.bg-gray-900 pre code {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    /* Моноширинный шрифт */
    white-space: pre-wrap;
    /* Сохраняем пробелы и переносим длинные строки */
    word-break: break-all;
    /* Переносим слова при необходимости */
    word-wrap: break-word;
    /* Переносим слова при необходимости */
    color: #f97316;

}