/* 1. Глобальные настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #000; /* Глубокий черный фон */
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    overflow-x: hidden;
}

/* 2. Навигационная панель (Остров) */
.nav-pan {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* Всегда сверху */
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 30px;
    min-width: 600px;
}

.hyper-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 22px; /* Фиксируем размер твоего большого лого */
    width: auto;
}

.hyper-links ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.hyper-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    transition: 0.3s;
}

.hyper-links a:hover {
    opacity: 1;
}

/* 3. Главный контейнер (Первая секция) */
.main-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

/* Текст слева */
.text-side {
    position: relative;
    z-index: 10;
    max-width: 500px;
}

.text-side h1 {
    font-size: clamp(40px, 6vw, 64px);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.text-side p {
    font-size: 18px;
    line-height: 1.6;
    color: #a1a1a6;
    margin-bottom: 15px;
}

.text-side p strong {
    color: #fff;
}

/* Эффект для Apple Intelligence */
.ai {
    background: linear-gradient(90deg, #70f, #05f, #70f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* 4. Картинка iPhone на фоне */
.fon {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    height: 85vh;
    z-index: 1;
    pointer-events: none; /* Чтобы не мешала кликать */
    object-fit: contain;
}

/* Затемнение для читаемости текста */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000 20%, rgba(0,0,0,0) 60%);
    z-index: 2;
}

/* 5. Карточки справа (rith-kits) */
.rith-kits {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 20; /* Выше фона и оверлея */
}

.carts1, .carts2 {
    width: 230px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 18px;
    transition: transform 0.4s ease;
}

.carts1:hover, .carts2:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.proc, .camera {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 12px;
}

.carts-info span, .carts-info2 span {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    display: block;
}

.carts-info small {
    color: #a1a1a6;
    font-size: 13px;
}

/* Убираем лишние отступы у параграфов в карточках */
.carts-info p, .carts-info2 p {
    margin: 0;
}


/* --- НОВЫЕ СЕКЦИИ (БЕЗ ВРЕДА ДЛЯ СТАРЫХ) --- */

html {
    scroll-behavior: smooth; /* Плавная прокрутка ко всем блокам */
}

.section-padding {
    padding: 120px 5%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-darker { background-color: #050505; }

.container-apple {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

/* Цены */
.price-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.price-item img {
    height: 300px;
    width: auto;
    transition: transform 0.5s ease;
}

.price-item:hover img { transform: scale(1.05); }

.price-card-new {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    width: 300px;
}

.price-card-new.featured { border-color: #0071e3; background: rgba(0, 113, 227, 0.05); }
.price-card-new h3 { font-size: 24px; margin-bottom: 10px; }
.price-card-new p { color: #a1a1a6; margin-bottom: 20px; }
.cost { font-size: 28px; font-weight: 600; margin-bottom: 25px; }

.apple-btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.apple-btn:hover { background: #0077ed; }

/* Магазины */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.store-card {
    background: #1d1d1f;
    padding: 30px;
    border-radius: 24px;
    transition: 0.3s;
}

.store-card:hover { background: #2d2d2f; }
.store-card h4 { font-size: 20px; margin-bottom: 10px; }
.store-card p { color: #a1a1a6; margin-bottom: 5px; }
.store-card span { font-size: 14px; color: #0071e3; }

/* Отзывы */
.reviews-container {
    display: flex;
    gap: 30px;
}

.review-bubble {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 35px;
    flex: 1;
}

.review-bubble p { font-size: 20px; font-style: italic; line-height: 1.5; margin-bottom: 20px; color: #f5f5f7; }
.review-bubble h5 { color: #a1a1a6; font-size: 16px; font-weight: 400; }

/* Финальный блок */
.final-cta {
    text-align: center;
    padding: 150px 5%;
    background: linear-gradient(180deg, #000 0%, #1d1d1f 100%);
}

.final-cta h2 { font-size: 56px; margin-bottom: 20px; }
.final-cta p { font-size: 20px; color: #a1a1a6; margin-bottom: 40px; }

.apple-btn-large {
    background: #fff;
    color: #000;
    border: none;
    padding: 20px 50px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.apple-btn-large:hover { transform: scale(1.05); }

.footer-links { margin-top: 100px; border-top: 1px solid #333; padding-top: 40px; font-size: 12px; color: #666; }

/* Фикс для набара, чтобы работал скролл по якорям */
#price, #stores, #reviews, #order {
    scroll-margin-top: 80px;
}

/* --- ИСПРАВЛЕННЫЕ АНИМАЦИИ (БЕЗ СДВИГА ЦЕНТРОВКИ) --- */

/* 1. Анимация для текста и секций (простая) */
@keyframes appleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 2. Анимация для навигации (сохраняем translateX -50%) */
@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* 3. Анимация для карточек rith-kits (сохраняем translateY -50%) */
@keyframes kitsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}
