/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --apple-black: #1d1d1f;
    --apple-gray: #86868b;
    --apple-light-gray: #f5f5f7;
    --apple-white: #ffffff;
    --apple-blue: #0071e3;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--apple-black);
    background-color: var(--apple-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--apple-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--apple-black);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--apple-gray);
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 22px 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--apple-white) 0%, var(--apple-light-gray) 100%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
}

.hero-title {
    font-size: clamp(56px, 12vw, 120px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--apple-black);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 400;
    color: var(--apple-gray);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-description {
    font-size: clamp(19px, 2.5vw, 24px);
    color: var(--apple-gray);
    max-width: 700px;
    margin: 0 auto 60px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-image-container {
    margin-top: 60px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in-delay {
    animation: fadeInUp 1s ease 0.2s forwards;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.4s forwards;
}

.fade-in-delay-3 {
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* Секции */
section {
    padding: 100px 22px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 60px;
    color: var(--apple-black);
    line-height: 1.1;
}

/* Секция возможностей */
.features {
    background-color: var(--apple-white);
}

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

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    background-color: var(--apple-light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--apple-black);
}

.feature-card p {
    font-size: 17px;
    color: var(--apple-gray);
    line-height: 1.5;
}

/* Анимации появления карточек */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

/* Секция дизайна */
.design {
    background-color: var(--apple-light-gray);
}

.design-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.design-image-container {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.design-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.design-image:hover {
    transform: scale(1.05);
}

.design-text {
    text-align: center;
    max-width: 700px;
}

.design-text h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--apple-black);
}

.design-text p {
    font-size: 19px;
    color: var(--apple-gray);
    line-height: 1.6;
}

/* Секция покупки */
.buy-section {
    background-color: var(--apple-white);
    text-align: center;
}

.buy-description {
    font-size: 24px;
    color: var(--apple-gray);
    margin-bottom: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 40px;
    background-color: var(--apple-light-gray);
    border-radius: 20px;
    text-decoration: none;
    color: var(--apple-black);
    transition: all 0.3s ease;
    min-width: 180px;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: var(--apple-black);
    color: var(--apple-white);
}

.social-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.social-link svg.social-icon {
    width: 48px;
    height: 48px;
}

.social-link span {
    font-size: 17px;
    font-weight: 500;
}

/* Футер */
.footer {
    background-color: var(--apple-light-gray);
    padding: 40px 22px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    color: var(--apple-gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 12px;
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .hero {
        padding: 100px 22px 40px;
    }
    
    section {
        padding: 60px 22px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 300px;
    }
}

/* Параллакс эффект */
.parallax-scroll {
    will-change: transform;
}

/* Плавное появление элементов при скролле */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

