/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

:root {
    /* Colors */
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(0, 0%, 10%);
    --primary: hsl(217, 91%, 60%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(0, 0%, 96%);
    --muted: hsl(0, 0%, 45%);
    --border: hsl(0, 0%, 90%);

    /* Shadows */
    --card-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Spacing */
    --container-padding: 1.5rem;
    --section-padding: 5rem 0;
}

/* FontAwesome Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

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

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo .logo-img {
    height: 32px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    background: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%); /* Start off-screen to the right */
    transition: transform 0.5s ease; /* Smooth transition */
}

.mobile-menu-overlay.active {
    transform: translateX(0); /* Slide in from the right */
    width: 100%;
    max-width: 100vw;
    overflow: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.mobile-menu-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.mobile-menu-start {
    width: 100%;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    text-decoration: none;
}

.btn-sm {
    height: 40px;
    padding: 0 1rem;
}

.btn-lg {
    height: 56px;
    padding: 0 2.5rem;
    font-size: 1rem;
}

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

.btn-dark:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

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

.btn-primary:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--foreground);
    padding: 0;
    justify-content: left;
}

.btn-full {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    vertical-align: middle;
    white-space: nowrap;
}

.badge-black {
    background: var(--foreground);
    color: var(--background);
}

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

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 600px;
}

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

.play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--foreground);
    color: var(--background);
    border-radius: 50%;
    transition: 0.5s;
}

.btn-ghost:hover .play-icon{
    background-color: var(--primary);
}
.video-info {
    text-align: left;
    font-weight: normal;
}

.video-label {
    color: var(--muted);
}

.video-time {
    font-weight: 600;
}

.hero-feature {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-text {
    font-size: 0.875rem;
    color: var(--muted);
}

.hero-image-wrapper {
    position: relative;
}

.hero-card {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow-hover);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-content {
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--muted);
}

.hero-image {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
}

.hero-badges {
    position: absolute;
    bottom: 1rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.badge-design {
    background-color: #fb923c;
    font-size: 1.25rem;
}

.badge-development {
    background-color: #60a5fa;
    font-size: 1.25rem;
}

.badge-sales {
    background-color: #f472b6;
    font-size: 1.25rem;
}

/* Адаптивность для бейджей */
@media (max-width: 768px) {
    .badge-design,
    .badge-development,
    .badge-sales {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .badge-design,
    .badge-development,
    .badge-sales {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Section */
.section {
    padding: var(--section-padding);
}

.section-alt {
    background: rgba(0, 0, 0, 0.02);
}

.section-header {
    max-width: 900px;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

/* Program Section */
.program-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 3rem;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.program-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.5s ease; /* Плавная анимация для трансформации */
}

.program-card:hover {
    transform: scale(1.03); /* При наведении — масштабируем карточку */
}

.program-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    min-height: 3.5rem;
}

.program-card-text {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.program-icon {
    width: 128px;
    height: 128px;
    border-radius: 1rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.gradient-orange {
    background: linear-gradient(135deg, #fb923c, #f472b6);
}

.gradient-blue {
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
}

.gradient-pink {
    background: linear-gradient(135deg, #f472b6, #fb923c);
}

.gradient-gray {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: transform 0.5s ease; /* Плавная анимация для трансформации */
}

.pricing-card:hover {
    transform: scale(1.03); /* При наведении — масштабируем карточку */
}

.pricing-card-highlighted {
    border: 2px solid var(--primary);
    scale: 1.05;
}

.pricing-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    font-size: 0.875rem;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.price-currency {
    font-size: 1.5rem;
    color: var(--muted);
}

.pricing-description {
    color: var(--muted);
    margin-bottom: 2rem;
}

.pricing-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Cases Section */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.case-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
}

.case-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-8px);
}

.case-image {
    aspect-ratio: 1;
    overflow: hidden;
}

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

.case-content {
    padding: 1.5rem;
}

.case-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.case-description {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-income {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.process-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: transform 0.5s ease; /* Плавная анимация для трансформации */
}

.process-card:hover {
    transform: scale(1.03); /* При наведении — масштабируем карточку */
}

.process-number {
    font-size: 5rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    margin: 1.5rem 0;
}

.process-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.process-text {
    color: var(--muted);
}

.process-arrow {
    position: absolute;
    top: 50%;
    right: -0.75rem;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--foreground);
    color: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 10;
}

.process-card:last-child .process-arrow {
    display: none;
}

/* Registration Section */
.registration-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Add padding for mobile */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: stretch; /* Changed from center to stretch to make both columns equal height */
}

.registration-image {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 1.5rem;
    padding: 0.5rem;
    overflow-x: hidden; /* Prevent horizontal overflow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-image img {
    border-radius: 1rem;
    max-width: 100%; /* Ensure image fits within container */
    height: auto;
    display: block;
}

.registration-form-wrapper {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    overflow-x: hidden; /* Prevent horizontal overflow */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.registration-description {
    color: var(--muted);
    margin-bottom: 2rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-input {
    height: 56px;
    padding: 0 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    font-family: inherit;
    width: 100%; /* Ensure full width on mobile */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.form-input:focus {
    outline: 2px solid var(--primary);
}

.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
    width: 100%; /* Ensure full width on mobile */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 1rem;
    font-weight: 500;
    flex-shrink: 0; /* Prevent shrinking */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.phone-input {
    flex: 1;
    width: 100%; /* Ensure full width on mobile */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted);
    cursor: pointer;
    width: 100%; /* Ensure full width on mobile */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.success-message {
    padding: 1rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
}

/* Additional responsive styles for mobile */
@media (max-width: 768px) {
    .registration-wrapper {
        padding: 0;
    }

    .registration-grid {
        grid-template-columns: 1fr;
    }

    .registration-image img {
        width: 100%;
        height: auto;
    }

    .form-input,
    .phone-input,
    .checkbox-label {
        width: 100%;
    }
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--foreground);
    color: var(--background);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.social-link:hover {
    transform: scale(1.15);
    opacity: 0.9;
    background: var(--primary);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
    }

    .footer-left {
        align-items: flex-start;
    }

    .footer-nav {
        flex: 1;
        justify-content: center;
        margin: 0 2rem;
    }

    .footer-copyright {
        margin-left: auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .registration-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch; /* Ensure equal height columns */
    }
}
@media (max-width: 1024px) {
    .program-buttons{
        margin-top: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-arrow {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .program-buttons {
        flex-direction: column;
        margin-top: 5rem;
    }

    .process-arrow {
        display: none;
    }

    .pricing-card-highlighted {
        transform: scale(1);
    }
}
