/* === 1. ОБЩИЕ СТИЛИ (RESET) === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Прижимает футер к низу, если контента мало */
}

a { text-decoration: none; }
ul { list-style: none; }

/* === 2. HEADER (ШАПКА) === */
.site-header {
    padding: 15px 40px;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
    display: block;
}

.language-selector {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* === 3. MAIN HERO SECTION (Блок с видео) === */
main {
    width: 100%;
    flex: 1; /* Растягивает main, чтобы футер был внизу */
}

.framer-1a05whe {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.framer-c9os2c {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

/* Текстовая колонка */
.framer-64k0an {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.title-gradient {
    font-size: 68px;
    line-height: 1.1;
    font-weight: 700;
    background-image: linear-gradient(0deg, rgb(226, 41, 255) -11%, rgb(128, 0, 255) 58%, rgb(150, 52, 224) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle-main {
    font-size: 47px;
    line-height: 1.2;
    font-weight: 400;
    color: #333;
}

.description-text {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    max-width: 90%;
}

/* Кнопки */
.buttons-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.framer-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
}

.framer-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.primary-btn {
    background-color: rgb(128, 0, 255);
    color: #fff;
    box-shadow: rgba(128, 0, 255, 0.3) 0px 8px 15px;
}

.secondary-btn {
    background-color: rgb(243, 233, 255);
    color: rgb(128, 0, 255);
}

/* Видео колонка */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === 4. SECTION: Personalised Designs (Сетка картинок) === */
.designs-section {
    padding: 60px 20px;
    background-color: #fff;
    margin-bottom: 60px;
}

.designs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.designs-title {
    font-size: 36px;
    font-weight: 500;
    color: #444;
    margin-bottom: 40px;
    letter-spacing: 0.4px;
}

.designs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.design-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.design-card:hover {
    transform: translateY(-5px);
}

.design-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === 5. FOOTER (ПОДВАЛ) === */
.site-footer {
    background-color: #111; /* Тот самый черный фон */
    color: #fff;
    padding: 60px 40px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    max-width: 300px;
}
.footer-left p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    margin-top: 20px;
}

.footer-right {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #fff;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #333;
    margin: 40px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
}

.footer-social span {
    margin-left: 10px;
    cursor: pointer;
}

/* === 6. АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ) === */
@media (max-width: 768px) {
    .framer-c9os2c {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .framer-64k0an {
        align-items: center;
    }

    .title-gradient { font-size: 42px; }
    .subtitle-main { font-size: 32px; }

    .buttons-wrapper { justify-content: center; }

    .video-wrapper {
        height: 300px;
        order: -1; 
    }

    .designs-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
    }
    .footer-right {
        flex-direction: column;
        gap: 30px;
    }
}

/* === SECTION: Memories === */
.memories-section {
    padding: 60px 20px;
    background-color: #fff;
    margin-bottom: 60px;
}

.memories-container {
    max-width: 1200px;
    margin: 0 auto;
}

.memories-title {
    font-size: 36px;
    font-weight: 500;
    color: #444;
    margin-bottom: 40px;
    letter-spacing: 0.4px;
}

/* Сетка из двух колонок */
.memories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две равные колонки */
    gap: 40px; /* Расстояние между карточками */
}

.memory-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Стили для картинки */
.memory-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    /* Можно добавить легкую тень, как в дизайне */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.memory-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Эффект увеличения при наведении */
.memory-card:hover .memory-image img {
    transform: scale(1.03);
}

/* Стили для текста */
.memory-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.memory-content h3 {
    font-size: 24px;
    font-weight: 500;
    color: #444;
    letter-spacing: 0.5px;
}

.memory-content p {
    font-size: 17px;
    line-height: 1.6;
    color: #888;
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .memories-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильном */
        gap: 40px;
    }
    
    .memories-title {
        font-size: 28px;
        text-align: center;
    }
}

/* === SECTION: Features (Иконки с текстом) === */
.features-section {
    padding: 60px 20px;
    background-color: #fff; /* Белый фон */
    margin-bottom: 60px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 40px; /* Отступы между колонками */
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Выравнивание по левому краю */
    gap: 20px;
}

.feature-icon {
    width: 72px; /* Размер иконки как в оригинале */
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Чтобы иконка не обрезалась */
}

.feature-content h3 {
    font-size: 24px;
    font-weight: 500;
    color: #444;
    margin-bottom: 10px;
    letter-spacing: 0.8px;
}

.feature-content p {
    font-size: 17px;
    line-height: 1.6;
    color: #888;
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильном */
        gap: 50px; /* Чуть больше отступ между блоками по вертикали */
    }
    
    .feature-card {
        align-items: center; /* Центрируем контент на телефоне для красоты */
        text-align: center;
    }
    
    .feature-icon {
        justify-content: center;
    }
}

/* === SECTION: FAQ === */
.faq-section {
    padding: 80px 20px;
    background-color: #fff;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* На десктопе: 1 часть под заголовок, 2 части под вопросы */
    grid-template-columns: 1fr 1.5fr; 
    gap: 60px;
}

/* Стили заголовка */
.faq-header {
    position: sticky;
    top: 100px; /* Чтобы заголовок "прилипал" при прокрутке длинного списка */
    align-self: start;
}

.faq-title {
    font-size: 36px;
    font-weight: 500;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: 16px;
    color: #888;
    line-height: 1.5;
}

.faq-subtitle a {
    color: rgb(128, 0, 255); /* Фиолетовый цвет ссылок */
    text-decoration: underline;
    font-weight: 500;
}

/* Стили Аккордеона */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: #f7f7f7; /* Светло-серый фон плашек */
    border-radius: 10px;
    overflow: hidden;
    transition: background-color 0.3s;
}

.faq-item[open] {
    background-color: #f7f7f7;
}

/* Заголовок вопроса (кнопка) */
summary {
    list-style: none; /* Убираем стандартный треугольник */
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Убираем треугольник в Safari/Chrome */
summary::-webkit-details-marker {
    display: none;
}

/* Иконка плюсика справа */
summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    color: #888;
    transition: transform 0.3s ease;
}

/* Когда открыто - плюсик поворачивается в крестик */
details[open] summary::after {
    transform: rotate(45deg);
}

/* Ответ внутри */
.faq-answer {
    padding: 0 25px 25px 25px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность для телефонов */
@media (max-width: 900px) {
    .faq-container {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 30px;
    }

    .faq-header {
        position: static; /* Отключаем прилипание на мобильном */
        margin-bottom: 20px;
    }

    .faq-title {
        font-size: 28px;
    }
}