@import url("https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900");

/* ---------------------------------------------
   Reset & Global Styles
--------------------------------------------- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #22222A; /* Основной темный фон из maker.css */
    color: #fff;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    text-decoration: none;
    transition: all 0.3s;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

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

/* ---------------------------------------------
   Container
--------------------------------------------- */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------------------------------------------
   Header Style
   (Адаптировано под стиль .background-header и .header-area)
--------------------------------------------- */
.site-header {
    background-color: #fff;
    height: 80px;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.15);
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2a2a2a;
    text-transform: uppercase;
}

.logo span {
    color: #7453fc;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: #2a2a2a;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    border-radius: 18px;
}

.main-nav a:hover {
    color: #7453fc;
    background-color: rgba(116,83,252, 0.1);
}

/* --- 3. ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ --- */
.theme-switcher {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 20px;
    padding: 5px;
    position: relative;
    width: 30px;
    height: 30px;
}
.theme-switcher .icon-sun, .theme-switcher .icon-moon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, transform 0.3s;
}

/* ---------------------------------------------
   Hero Section
   (Стиль .main-banner с градиентом)
--------------------------------------------- */
.hero {
    /* Фирменный градиент из maker.css */
    background: rgb(95,62,133);
    background: radial-gradient(circle, rgba(95,62,133,1) 0%, rgba(116,83,252,1) 52%, rgba(252,70,107,1) 100%);
    background-size: cover;
    background-position: center;
    padding: 180px 0 120px 0;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-top: -30px; /* Чтобы зашло под хедер визуально */
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 strong {
    color: #fff; /* На цветном фоне текст белый */
}

.hero .subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    color: #fff;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons (Стили .main-button и .border-button) */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    /* Инвертированная кнопка для Hero секции */
    background-color: #fff;
    color: #7453fc;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary {
    /* Стандартная кнопка действия */
    background-color: transparent;
    color: #7453fc;
    border: 1px solid #7453fc;
    width: 100%;
    margin-top: 15px;
}

.btn-secondary:hover {
    background-color: #7453fc;
    color: #fff;
}

/* ---------------------------------------------
   Catalog / Effects Gallery
   (Стиль .discover-items и .item)
--------------------------------------------- */
.catalog-section {
    padding: 100px 0;
    background-color: #22222A;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 30px;
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    /* Декоративная линия .line-dec */
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background-color: #7453fc;
    margin: 20px auto 0;
}

.section-header h2 strong {
    color: #7453fc;
}

.section-header p {
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

.effects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Карточка эффекта (Стиль .item) */
.effect-card {
    background-color: #282b2f;
    border: 1px solid #404245;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.effect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.effect-preview {
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
}

.effect-preview img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.effect-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.effect-info p {
    font-size: 14px;
    color: #afafaf;
    line-height: 1.6;
    flex-grow: 1;
}

/* ---------------------------------------------
   How it Works & FAQ
--------------------------------------------- */
.how-it-works-section,
.faq-section,
.about-section {
    padding: 80px 0;
    background-color: #282b2f; /* Чередование фона */
    border-top: 1px solid #404245;
    border-bottom: 1px solid #404245;
}

.faq-section {
    background-color: #22222A;
    border: none;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    background-color: #22222A;
    border: 1px solid #404245;
    border-radius: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #7453fc;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.step p {
    color: #afafaf;
    font-size: 15px;
}

.faq-item {
    background-color: #282b2f;
    border: 1px solid #404245;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #7453fc;
}

.faq-item p {
    color: #afafaf;
    margin: 0;
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
    /* Градиент футера из maker.css */
    background: linear-gradient(132deg, rgba(125,90,254,1) 25%, rgba(160,84,244,1) 100%);
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

.site-footer p {
    color: #fff;
    font-size: 16px;
    margin: 10px 0;
}

.site-footer a {
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
}

.site-footer a:hover {
    opacity: 0.8;
}

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 992px) {
    .site-header .container {
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .steps-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Для упрощения, т.к. в оригинале нужно JS меню */
    }
    
    .site-header {
        justify-content: center;
    }
    
    .logo {
        margin: 0 auto;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
}