/* ===== Подключение шрифтов ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

/* ===== CSS переменные ===== */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #6c8cff;
    --secondary: #7209b7;
    --accent: #f72585;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray: #4a5568;
    --gray-light: #a0aec0;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Хедер и навигация ===== */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__menu {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header__logo img {
    height: 48px;
    width: auto;
    border-radius: 14px;
}

/* Стили для ссылок в навигации */
.header__link {
    background: #a200ff6a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    position: relative;
    font-size: 0.95rem;
    border: 1px solid #16213e;
}


/* Telegram кнопка */
.telegram-link {
    background: #8700fe;
    color: white !important;
    padding: 0.6rem 1.8rem !important;
    border-radius: 50px !important;
    margin-left: auto;
    /* box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3); */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.telegram-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    /* background: rgba(255, 255, 255, 0.3); */
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.telegram-link:hover::before {
    width: 300px;
    height: 300px;
}

.telegram-link:active {
    transform: translateY(1px);
}

/* Бургер-меню */
.header__toggle {
    display: none;
}

.header__icon {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 100;
}

.header__icon span,
.header__icon span::before,
.header__icon span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header__icon span {
    top: 50%;
    transform: translateY(-50%);
}

.header__icon span::before {
    top: -10px;
}

.header__icon span::after {
    bottom: -10px;
}

.header__toggle:checked~.header__icon span {
    background: transparent;
}

.header__toggle:checked~.header__icon span::before {
    transform: rotate(45deg);
    top: 0;
}

.header__toggle:checked~.header__icon span::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ===== Основной контент ===== */
.main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

/* Стили заголовков */
h2 {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    border-radius: 4px;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1rem 0;
}

/* Карточки */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(67, 97, 238, 0.1);
}

/* Секция различий */
.difference__content {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 2rem;
    border-radius: 28px;
    color: #e2e8f0;
}

.difference__list {
    list-style: none;
    margin-top: 1.5rem;
}

.comparison__item {
    padding: 1.2rem;
    margin: 0.8rem 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.comparison__label {
    color: var(--primary-light);
    display: inline-block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.term__low,
.term__no {
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Процесс разработки */
.process__list {
    list-style: none;
    margin-top: 1.5rem;
}

.process__item {
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}


.process__label {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Отзывы */
.feedback__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.feedback__card {
    background: var(--white);
    padding: 2rem;
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.card__text {
    position: relative;
    z-index: 1;
    font-style: italic;
    line-height: 1.7;
}

.card__author {
    display: block;
    margin-top: 1.2rem;
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
    border-top: 2px solid rgba(67, 97, 238, 0.2);
    padding-top: 1rem;
}

/* Сетка для use карточек */
.use__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use__card {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    padding: 10px;
    margin: 10px;
}

.use__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.use__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.use__card:hover .use__image {
    transform: scale(1.05);
}

.use__card h3 {
    padding: 0 1.2rem;
    margin-top: 1rem;
}

.use__card p,
.use__card ul {
    padding: 0 1.2rem 1.2rem;
}

.use__card ul {
    list-style-position: inside;
}

.use__card li {
    margin: 0.5rem 0;
    color: var(--gray);
}

/* Преимущества */
.advantages__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantages__item {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

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

.advantages__image {
    overflow: hidden;
}

.advantages__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.advantages__item:hover .advantages__image img {
    transform: scale(1.08);
}

.advantages__name {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1.2rem 1.2rem 0.5rem;
    background: var(--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.advantages__text {
    padding: 0 1.2rem 1.2rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Блок "С чего начать" */
.begin__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.begin__item {
    background: var(--white);
    padding: 2rem;
    border-radius: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.begin__item:hover::before {
    height: 8px;
}


.begin__name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Футер */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--gray-light);
    text-align: center;
    padding: 2.5rem;
    margin-top: 4rem;
}

.footer__copy {
    max-width: 1280px;
    margin: 0 auto;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .header__menu {
        padding: 1rem;
        position: relative;
    }

    .header__icon {
        display: block;
        margin-left: auto;
    }

    .header__link,
    .telegram-link {
        display: none;
        width: 100%;
        text-align: center;
        margin: 0.3rem 0;
    }

    .header__toggle:checked~.header__link,
    .header__toggle:checked~.telegram-link {
        display: block;
    }

    .header__toggle:checked~.telegram-link {
        margin-left: 0 !important;
    }

    .main {
        padding: 1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .card,
    .difference__content {
        padding: 1.2rem;
    }

    .feedback__list,
    .use__grid,
    .advantages__items,
    .begin__items {
        grid-template-columns: 1fr;
    }

    .process__item:hover {
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.4rem;
    }

    .advantages__image img {
        height: 180px;
    }

    .begin__name {
        font-size: 1.3rem;
    }

    .card,
    .feedback__card {
        padding: 1.2rem;
    }
}

/* ===== Анимации при загрузке ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.feedback__card,
.use__card,
.advantages__item,
.begin__item {
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.feedback__card:nth-child(1) {
    animation-delay: 0.1s;
}

.feedback__card:nth-child(2) {
    animation-delay: 0.2s;
}

.feedback__card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ===== Плавный скролл ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Кастомный скроллбар ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}