/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Навигация */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid #27272a;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #d946ef, #ef4444);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-weight: bold;
    color: #fff;
    letter-spacing: -0.025em;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background-color: #d946ef;
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-ghost {
    background-color: rgba(39, 39, 42, 0.6);
    color: #fff;
    border: 1px solid #3f3f46;
}

.btn-ghost:hover {
    background-color: rgba(63, 63, 70, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #27272a;
}

.btn-outline:hover {
    background-color: #09090b;
}

/* Страницы */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Герой секция */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .hero {
        padding: 6rem 0;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background: radial-gradient(ellipse at top left, #d946ef, #9333ea, #dc2626);
    filter: blur(48px);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-description {
    margin-top: 1rem;
    color: #a1a1aa;
    font-size: 1rem;
    max-width: 36rem;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-features {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #a1a1aa;
    max-width: 36rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-dot {
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 50%;
    background-color: #d946ef;
}

/* Демо панель */
.hero-demo {
    margin-top: 0.75rem;
}

.demo-container {
    position: relative;
    padding: 0.25rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.4), rgba(239, 68, 68, 0.4));
}

.demo-card {
    border-radius: 1.5rem;
    background-color: rgba(24, 24, 27, 0.7);
    padding: 1rem;
    border: 1px solid #27272a;
}

@media (min-width: 640px) {
    .demo-card {
        padding: 1.5rem;
    }
}

.demo-description {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #71717a;
}

/* Dashboard mockup */
.dashboard-mockup {
    color: #fff;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-title {
    font-weight: 600;
    color: #fff;
}

.dashboard-time {
    font-size: 0.75rem;
    color: #71717a;
}

.dashboard-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.75rem;
    color: #71717a;
}

.dashboard-rows {
    margin-top: 0.5rem;
    border-top: 1px solid #27272a;
}

.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem 0;
    align-items: start;
}

.row-time {
    color: #a1a1aa;
    font-size: 0.875rem;
}

.row-workflow {
    color: #a1a1aa;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-result {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    text-align: left;
}

.result-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background-color: #c026d3;
    color: #fff;
    white-space: nowrap;
}

/* Статистика */
.stats {
    background-color: rgba(9, 9, 11, 0.6);
    border-top: 1px solid #111827;
    border-bottom: 1px solid #111827;
    padding: 3.5rem 0;
}

@media (min-width: 640px) {
    .stats {
        padding: 5rem 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 800;
    color: #fff;
}

@media (min-width: 640px) {
    .stat-number {
        font-size: 2.25rem;
    }
}

.stat-label {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #71717a;
}

/* Секции */
.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
    color: #fff;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    margin-top: 0.75rem;
    color: #a1a1aa;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Услуги */
.features {
    padding: 3.5rem 0;
}

@media (min-width: 640px) {
    .features {
        padding: 5rem 0;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    border-radius: 1rem;
    background-color: rgba(24, 24, 27, 0.7);
    padding: 1.5rem;
    border: 1px solid #27272a;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

.feature-description {
    margin-top: 0.5rem;
    color: #a1a1aa;
    font-size: 0.875rem;
}

/* Кейсы */
.cases {
    padding: 3.5rem 0;
}

@media (min-width: 640px) {
    .cases {
        padding: 5rem 0;
    }
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.case-card {
    border-radius: 1rem;
    background-color: rgba(24, 24, 27, 0.7);
    padding: 1.5rem;
    border: 1px solid #27272a;
}

.case-title {
    font-weight: 600;
    color: #fff;
}

.case-description {
    margin-top: 0.5rem;
    color: #a1a1aa;
    font-size: 0.875rem;
}

/* Инструменты */
.tools {
    padding: 3.5rem 0;
}

@media (min-width: 640px) {
    .tools {
        padding: 5rem 0;
    }
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tool-item {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background-color: rgba(24, 24, 27, 0.7);
    border: 1px solid #27272a;
    font-size: 0.875rem;
    color: #a1a1aa;
}

/* Карусель шаблонов */
.templates {
    padding: 3.5rem 0;
}

@media (min-width: 640px) {
    .templates {
        padding: 5rem 0;
    }
}

.templates-carousel {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
}

.template-container {
    border-radius: 1rem;
    background-color: rgba(24, 24, 27, 0.7);
    padding: 1.5rem;
    border: 1px solid #27272a;
}

.template-card {
    display: flex;
    flex-direction: column;
}

.template-image {
    height: 14rem;
    width: 100%;
    background-color: #27272a;
    border-radius: 0.375rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .template-image {
        height: 20rem;
    }
}

.template-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.template-info {
    margin-top: 1rem;
    text-align: left;
}

.template-title {
    font-weight: 600;
    color: #fff;
}

.template-description {
    color: #71717a;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.carousel-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background-color: #3f3f46;
}

.carousel-counter {
    font-size: 0.875rem;
    color: #71717a;
}

/* Как работает */
.how-it-works {
    padding: 3.5rem 0;
}

@media (min-width: 640px) {
    .how-it-works {
        padding: 5rem 0;
    }
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    position: relative;
    border-radius: 1rem;
    background-color: rgba(24, 24, 27, 0.7);
    padding: 1.5rem;
    border: 1px solid #27272a;
}

.step-number {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    height: 3rem;
    width: 3rem;
    border-radius: 0.75rem;
    background-color: #c026d3;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.step-title {
    font-size: 1.125rem;
    color: #fff;
    font-weight: 600;
}

.step-description {
    margin-top: 0.5rem;
    color: #a1a1aa;
    font-size: 0.875rem;
}

/* CTA */
.cta {
    padding: 3.5rem 0;
}

@media (min-width: 640px) {
    .cta {
        padding: 5rem 0;
    }
}

.cta-card {
    border-radius: 1.5rem;
    background-color: rgba(24, 24, 27, 0.7);
    padding: 2rem;
    border: 1px solid #27272a;
    text-align: center;
}

@media (min-width: 640px) {
    .cta-card {
        padding: 3rem;
    }
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 1.875rem;
    }
}

.cta-description {
    color: #71717a;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.cta-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* Контакты */
.contact {
    padding: 3.5rem 0;
}

@media (min-width: 640px) {
    .contact {
        padding: 5rem 0;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-info {
    border-radius: 1.5rem;
    background-color: rgba(24, 24, 27, 0.7);
    padding: 1.5rem;
    border: 1px solid #27272a;
}

.contact-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.contact-description {
    color: #a1a1aa;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.contact-details {
    font-size: 0.875rem;
}

.contact-item {
    color: #71717a;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #a1a1aa;
    text-decoration: underline;
}

.contact-text {
    color: #a1a1aa;
}

/* Спасибо */
.thank-you {
    padding: 3.5rem 0;
}

@media (min-width: 640px) {
    .thank-you {
        padding: 5rem 0;
    }
}

.thank-you-card {
    border-radius: 1.5rem;
    background-color: rgba(24, 24, 27, 0.7);
    padding: 2rem;
    border: 1px solid #27272a;
    text-align: center;
}

.thank-you-text {
    color: #a1a1aa;
}

.thank-you-actions {
    margin-top: 1rem;
}

.thank-you-link {
    color: #a1a1aa;
    text-decoration: underline;
}

/* Футер */
.footer {
    border-top: 1px solid #111827;
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-copyright {
    color: #71717a;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-link {
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page {
    animation: fadeInUp 0.2s ease-out;
}

/* Адаптивность */
@media (max-width: 767px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
